Skip to content

Commit fdb5314

Browse files
authored
Merge pull request #13 from adafruit/dherrada-patch-1
Should fix raise-missing-from failure
2 parents f544995 + 031b3f8 commit fdb5314

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_hue.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ def discover_bridge(self):
115115
json_data = resp.json()
116116
bridge_ip = json_data[0]["internalipaddress"]
117117
resp.close()
118-
except:
118+
except Exception as err:
119119
raise TypeError(
120120
"Ensure the Philips Bridge and CircuitPython device\
121121
are both on the same WiFi network."
122-
)
122+
) from err
123123
self._ip = bridge_ip
124124
# set up hue bridge address path
125125
self._bridge_url = "http://{}/api".format(self._ip)

0 commit comments

Comments
 (0)