Skip to content

Commit

Permalink
fix: handle runtime sys.version_info for client exceptions correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Feb 3, 2024
1 parent 6fd1f22 commit 9cfe868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde_worker_regen/process_management/process_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
# As of 3.11, asyncio.TimeoutError is deprecated and is an alias for builtins.TimeoutError
_async_client_exceptions: tuple[type[Exception], ...] = (TimeoutError, aiohttp.client_exceptions.ClientError, OSError)

if sys.version_info == (3, 10):
if sys.version_info[:2] == (3, 10):
_async_client_exceptions = (asyncio.exceptions.TimeoutError, aiohttp.client_exceptions.ClientError, OSError)


Expand Down

0 comments on commit 9cfe868

Please sign in to comment.