Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add errorhandling for bridge connection problems #3

Open
Fightbackman opened this issue Oct 5, 2017 · 0 comments
Open

Add errorhandling for bridge connection problems #3

Fightbackman opened this issue Oct 5, 2017 · 0 comments

Comments

@Fightbackman
Copy link
Contributor

At the moment the ip of the bridge is hardcoded inside the python file.
Maybe there should be a better errorhandling for this than a stack trace:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/phue.py", line 736, in connect
    with open(self.config_file_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/lukas/.python_hue'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "wherearehue.py", line 6, in <module>
    b = Bridge('10.1.2.4')
  File "/usr/lib/python3.6/site-packages/phue.py", line 629, in __init__
    self.connect()
  File "/usr/lib/python3.6/site-packages/phue.py", line 752, in connect
    self.register_app()
  File "/usr/lib/python3.6/site-packages/phue.py", line 720, in register_app
    'The link button has not been pressed in the last 30 seconds.')
phue.PhueRegistrationException: (101, 'The link button has not been pressed in the last 30 seconds.')```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant