Except all types of timeout error

Closes #4172.
This commit is contained in:
Lonami Exo
2023-08-18 18:36:30 +02:00
parent 128b707488
commit b0f9fd1f25
4 changed files with 5 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ class _DirectDownloadIter(RequestIter):
else:
return result.bytes
except errors.TimeoutError as e:
except errors.TimedOutError as e:
if self._timed_out:
self.client._log[__name__].warning('Got two timeouts in a row while downloading file')
raise