1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Fix error description

This commit is contained in:
coder2020official 2022-11-05 22:49:07 +04:00
parent 572f103db7
commit f1f18c6df2

View File

@ -428,12 +428,13 @@ class AsyncTeleBot:
handled = True
if not handled:
logger.error('Unhandled exception (full traceback for debug level): %s', str(e))
logger.debug(traceback.format_exc())
if non_stop or handled:
continue
else:
raise e
break
except Exception as e:
handled = False
if self.exception_handler:
@ -441,13 +442,13 @@ class AsyncTeleBot:
handled = True
if not handled:
logger.error('Cause exception while getting updates. Enable debug logging for more info.')
logger.error('Unhandled exception (full traceback for debug level): %s', str(e))
logger.debug(traceback.format_exc())
if non_stop or handled:
continue
else:
raise e
break
finally:
self._polling = False
await self.close_session()