Skip to content

Commit

Permalink
chore: Merge pull request #6 from cmroche/revert-5-deprecation
Browse files Browse the repository at this point in the history
Revert "Fix aiohttp deprecation message"
  • Loading branch information
cmroche authored Aug 11, 2024
2 parents 70a4afd + 0e0fb4e commit 5c54bec
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.status == 401:
if error.code == 401:
_LOGGER.error("API access is unauthorized")
self.state = WEBSOCKET_STATE_STOPPING
await set_exception(ClientNotAuthenticatedError)
Expand Down

0 comments on commit 5c54bec

Please sign in to comment.