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:
parent
572f103db7
commit
f1f18c6df2
@ -428,12 +428,13 @@ class AsyncTeleBot:
|
|||||||
handled = True
|
handled = True
|
||||||
|
|
||||||
if not handled:
|
if not handled:
|
||||||
|
logger.error('Unhandled exception (full traceback for debug level): %s', str(e))
|
||||||
logger.debug(traceback.format_exc())
|
logger.debug(traceback.format_exc())
|
||||||
|
|
||||||
if non_stop or handled:
|
if non_stop or handled:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
raise e
|
break
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
handled = False
|
handled = False
|
||||||
if self.exception_handler:
|
if self.exception_handler:
|
||||||
@ -441,13 +442,13 @@ class AsyncTeleBot:
|
|||||||
handled = True
|
handled = True
|
||||||
|
|
||||||
if not handled:
|
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())
|
logger.debug(traceback.format_exc())
|
||||||
|
|
||||||
if non_stop or handled:
|
if non_stop or handled:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
raise e
|
break
|
||||||
finally:
|
finally:
|
||||||
self._polling = False
|
self._polling = False
|
||||||
await self.close_session()
|
await self.close_session()
|
||||||
|
Loading…
Reference in New Issue
Block a user