Revert "Fix: add destructor as the last-resort clean up"

This reverts commit 48a1478ded.
This commit is contained in:
Serhii Dylda 2020-10-11 03:07:22 +02:00
parent ee08e69529
commit c351822c8b

View File

@ -439,15 +439,6 @@ class TelegramBaseClient(abc.ABC):
# A place to store if channels are a megagroup or not (see `edit_admin`)
self._megagroup_cache = {}
def __del__(self):
# Use destructor as the last-resort measure against
# unretrieved exceptions in the _sender.disconnected future
if self.disconnected:
self.disconnected.exception()
# endregion
# region Properties