mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
don't block loop
This commit is contained in:
parent
8d9dfcfac8
commit
c14760d81c
@ -270,7 +270,7 @@ class AsyncTeleBot:
|
||||
logger.error("Infinity polling exception: %s", str(e))
|
||||
if logger_level and logger_level >= logging.DEBUG:
|
||||
logger.error("Exception traceback:\n%s", traceback.format_exc())
|
||||
time.sleep(3)
|
||||
await asyncio.sleep(3)
|
||||
continue
|
||||
if logger_level and logger_level >= logging.INFO:
|
||||
logger.error("Infinity polling: polling exited")
|
||||
|
Loading…
Reference in New Issue
Block a user