This commit is contained in:
J. Nick Koston 2024-02-16 17:43:33 -06:00
parent 1b386a3326
commit 626d70d2e9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ class APIConnection:
if isinstance(ex, APIConnectionError):
return ex
cause: BaseException | None = None
if isinstance(ex, CancelledError):
if isinstance(ex, (ConnectionInterruptedError, CancelledError)):
err_str = f"{action.title()} connection cancelled"
if self._fatal_exception:
err_str += f" due to fatal exception: {self._fatal_exception}"