Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions adafruit_hue.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ def discover_bridge(self):
json_data = resp.json()
bridge_ip = json_data[0]["internalipaddress"]
resp.close()
except:
except Exception as err:
raise TypeError(
"Ensure the Philips Bridge and CircuitPython device\
are both on the same WiFi network."
)
) from err
self._ip = bridge_ip
# set up hue bridge address path
self._bridge_url = "http://{}/api".format(self._ip)
Expand Down