Skip to content

Commit 5ed05c7

Browse files
authored
Should fix raise-missing-from
1 parent f9d0a44 commit 5ed05c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_lifx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _parse_resp(response):
8080
for res in response.json()["results"]:
8181
return res["status"]
8282
except KeyError:
83-
raise KeyError(response.json()["error"])
83+
raise KeyError(response.json()["error"]) from KeyError
8484

8585
# HTTP Requests
8686
def _post(self, path, data):

0 commit comments

Comments
 (0)