diff --git a/telethon/network/connection/connection.py b/telethon/network/connection/connection.py index 22a4b11f..f38f4be3 100644 --- a/telethon/network/connection/connection.py +++ b/telethon/network/connection/connection.py @@ -113,7 +113,7 @@ class Connection(abc.ABC): try: await self._writer.wait_closed() except Exception as e: - # Seen OSError: No route to host + # Seen OSError: No route to host and [Errno 32] Broken pipe # Disconnecting should never raise self._log.warning('Unhandled %s on disconnect: %s', type(e), e) diff --git a/telethon/version.py b/telethon/version.py index baddb9cd..2273d056 100644 --- a/telethon/version.py +++ b/telethon/version.py @@ -1,3 +1,3 @@ # Versions should comply with PEP440. # This line is parsed in setup.py: -__version__ = '1.10.6' +__version__ = '1.10.7' diff --git a/telethon_generator/data/errors.csv b/telethon_generator/data/errors.csv index 02cd1b73..dbcdac80 100644 --- a/telethon_generator/data/errors.csv +++ b/telethon_generator/data/errors.csv @@ -96,6 +96,7 @@ FILE_PART_0_MISSING,,File part 0 missing FILE_PART_EMPTY,400,The provided file part is empty FILE_PART_INVALID,400,The file part number is invalid FILE_PART_LENGTH_INVALID,400,The length of a file part is invalid +FILE_PART_SIZE_CHANGED,400,The file part size (chunk size) cannot change during upload FILE_PART_SIZE_INVALID,400,The provided file part size is invalid FILE_PART_X_MISSING,400,Part {which} of the file is missing from storage FILEREF_UPGRADE_NEEDED,406,The file reference needs to be refreshed before being used again diff --git a/telethon_generator/data/methods.csv b/telethon_generator/data/methods.csv index 1e93ec2c..b7d7db8c 100644 --- a/telethon_generator/data/methods.csv +++ b/telethon_generator/data/methods.csv @@ -293,7 +293,7 @@ upload.getFile,both,AUTH_KEY_PERM_EMPTY FILE_ID_INVALID INPUT_FETCH_FAIL LIMIT_I upload.getFileHashes,both, upload.getWebFile,user,LOCATION_INVALID upload.reuploadCdnFile,both,RSA_DECRYPT_FAILED -upload.saveBigFilePart,both,FILE_PARTS_INVALID FILE_PART_EMPTY FILE_PART_INVALID FILE_PART_SIZE_INVALID Timeout +upload.saveBigFilePart,both,FILE_PARTS_INVALID FILE_PART_EMPTY FILE_PART_INVALID FILE_PART_SIZE_CHANGED FILE_PART_SIZE_INVALID Timeout upload.saveFilePart,both,FILE_PART_EMPTY FILE_PART_INVALID INPUT_FETCH_FAIL SESSION_PASSWORD_NEEDED users.getFullUser,both,Timeout USER_ID_INVALID users.getUsers,both,AUTH_KEY_PERM_EMPTY MEMBER_NO_LOCATION NEED_MEMBER_INVALID SESSION_PASSWORD_NEEDED Timeout