Skip to content

Commit 031b3f8

Browse files
authored
Change variable name to err
1 parent b82c54d commit 031b3f8

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 Exception as e:
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-
) from e
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)