diff --git a/adafruit_lifx.py b/adafruit_lifx.py index f88ca6e..5028e74 100644 --- a/adafruit_lifx.py +++ b/adafruit_lifx.py @@ -68,7 +68,7 @@ def _parse_resp(response: Response) -> str: from the LIFX HTTP API. """ if response.status_code == 422: - raise Exception( + raise RuntimeError( "Error: light(s) could not be toggled: " + response["error"] ) try: