tweaks
This commit is contained in:
parent
1b386a3326
commit
626d70d2e9
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue