mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Include Telethon version on fatal errors during updates
Since a lot of people don't mention the version when reporting issues, it makes it hard to determine whether it's already been fixed or not.
This commit is contained in:
parent
68ea208b43
commit
f9001bc8e0
|
@ -14,6 +14,7 @@ from ..events.common import EventBuilder, EventCommon
|
|||
from ..tl import types, functions
|
||||
from .._updates import GapError, PrematureEndReason
|
||||
from ..helpers import get_running_loop
|
||||
from ..version import __version__
|
||||
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
|
@ -419,7 +420,7 @@ class UpdateMethods:
|
|||
except asyncio.CancelledError:
|
||||
pass
|
||||
except Exception as e:
|
||||
self._log[__name__].exception('Fatal error handling updates (this is a bug in Telethon, please report it)')
|
||||
self._log[__name__].exception(f'Fatal error handling updates (this is a bug in Telethon v{__version__}, please report it)')
|
||||
self._updates_error = e
|
||||
await self.disconnect()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user