Skip to content

Commit

Permalink
Merge pull request #208 from flacjacket/async_error
Browse files Browse the repository at this point in the history
Change caught httpx error type
  • Loading branch information
flacjacket authored Mar 12, 2022
2 parents 79bbb57 + 7778ca5 commit 03fe45d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amcrest/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ async def _async_command(
self._async_token = None
raise LoginError()
resp.raise_for_status()
except httpx.RequestError as error:
except httpx.HTTPError as error:
_LOGGER.debug(
"%s Query %i failed due to error: %r",
self,
Expand Down

0 comments on commit 03fe45d

Please sign in to comment.