Skip to content

Commit 7662827

Browse files
authored
Merge pull request #21 from tekktrik/dev/specific-error
Use more specific error for discovering bridge_wifi
2 parents 97ba910 + f15de16 commit 7662827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_hue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def discover_bridge(self):
9898
json_data = resp.json()
9999
bridge_ip = json_data[0]["internalipaddress"]
100100
resp.close()
101-
except Exception as err:
101+
except IndexError as err:
102102
raise TypeError(
103103
"Ensure the Philips Bridge and CircuitPython device\
104104
are both on the same WiFi network."

0 commit comments

Comments
 (0)