mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
parent
128b707488
commit
b0f9fd1f25
|
@ -80,7 +80,7 @@ class _DirectDownloadIter(RequestIter):
|
||||||
else:
|
else:
|
||||||
return result.bytes
|
return result.bytes
|
||||||
|
|
||||||
except errors.TimeoutError as e:
|
except errors.TimedOutError as e:
|
||||||
if self._timed_out:
|
if self._timed_out:
|
||||||
self.client._log[__name__].warning('Got two timeouts in a row while downloading file')
|
self.client._log[__name__].warning('Got two timeouts in a row while downloading file')
|
||||||
raise
|
raise
|
||||||
|
|
|
@ -308,7 +308,7 @@ class UpdateMethods:
|
||||||
diff = await self(get_diff)
|
diff = await self(get_diff)
|
||||||
except (
|
except (
|
||||||
errors.ServerError,
|
errors.ServerError,
|
||||||
errors.TimeoutError,
|
errors.TimedOutError,
|
||||||
errors.FloodWaitError,
|
errors.FloodWaitError,
|
||||||
ValueError
|
ValueError
|
||||||
) as e:
|
) as e:
|
||||||
|
@ -384,7 +384,7 @@ class UpdateMethods:
|
||||||
errors.PersistentTimestampOutdatedError,
|
errors.PersistentTimestampOutdatedError,
|
||||||
errors.PersistentTimestampInvalidError,
|
errors.PersistentTimestampInvalidError,
|
||||||
errors.ServerError,
|
errors.ServerError,
|
||||||
errors.TimeoutError,
|
errors.TimedOutError,
|
||||||
errors.FloodWaitError,
|
errors.FloodWaitError,
|
||||||
ValueError
|
ValueError
|
||||||
) as e:
|
) as e:
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# Versions should comply with PEP440.
|
# Versions should comply with PEP440.
|
||||||
# This line is parsed in setup.py:
|
# This line is parsed in setup.py:
|
||||||
__version__ = '1.29.2'
|
__version__ = '1.29.3'
|
||||||
|
|
|
@ -464,6 +464,7 @@ TTL_MEDIA_INVALID,400,The provided media cannot be used with a TTL
|
||||||
TTL_PERIOD_INVALID,400,The provided TTL Period is invalid
|
TTL_PERIOD_INVALID,400,The provided TTL Period is invalid
|
||||||
TYPES_EMPTY,400,The types field is empty
|
TYPES_EMPTY,400,The types field is empty
|
||||||
TYPE_CONSTRUCTOR_INVALID,400,The type constructor is invalid
|
TYPE_CONSTRUCTOR_INVALID,400,The type constructor is invalid
|
||||||
|
Timedout,-503,Timeout while fetching data
|
||||||
Timeout,-503,Timeout while fetching data
|
Timeout,-503,Timeout while fetching data
|
||||||
UNKNOWN_ERROR,400,
|
UNKNOWN_ERROR,400,
|
||||||
UNKNOWN_METHOD,500,The method you tried to call cannot be called on non-CDN DCs
|
UNKNOWN_METHOD,500,The method you tried to call cannot be called on non-CDN DCs
|
||||||
|
|
|
Loading…
Reference in New Issue
Block a user