From 74839fe2cee06d480baad79213d1e19831f6347e Mon Sep 17 00:00:00 2001 From: Tekktrik Date: Thu, 11 May 2023 07:35:38 -0400 Subject: [PATCH] Linted per pre-commit --- adafruit_lifx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: