Skip to content

Commit efac391

Browse files
committed
fix: throw error when invalid response received to help determine what the response was
1 parent 21037fd commit efac391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blueair_api/http_aws_blueair.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ async def request_with_errors_wrapper(*args, **kwargs):
4444
_LOGGER.debug("response json found, checking status code from response")
4545
status_code = response_json["statusCode"]
4646
except Exception as e:
47-
_LOGGER.debug(f"Error parsing response for errors {e}")
48-
return response
47+
_LOGGER.error(f"Error parsing response for errors {e}")
48+
raise e
4949
if status_code == 200:
5050
_LOGGER.debug("response 200")
5151
return response

0 commit comments

Comments
 (0)