Skip to content

Commit

Permalink
Merge pull request #5 from tjni/deprecation
Browse files Browse the repository at this point in the history
Fix aiohttp deprecation message
  • Loading branch information
cmroche authored Aug 11, 2024
2 parents 7b27323 + c672178 commit 70a4afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moonraker_api/websockets/websocketclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ async def set_exception(exception: BaseException) -> None:

except ClientResponseError as error:
_LOGGER.warning("Websocket request error: %s", error)
if error.code == 401:
if error.status == 401:
_LOGGER.error("API access is unauthorized")
self.state = WEBSOCKET_STATE_STOPPING
await set_exception(ClientNotAuthenticatedError)
Expand Down

0 comments on commit 70a4afd

Please sign in to comment.