return bot polling command into try block
This commit is contained in:
parent
2a3771ca48
commit
e55decb67d
1 changed files with 1 additions and 1 deletions
|
|
@ -34,9 +34,9 @@ from .schedule.saved_groups import *
|
|||
def run():
|
||||
import logging
|
||||
logger.success('Bot', 'Started')
|
||||
bot.infinity_polling(logger_level=logging.INFO)
|
||||
# try: bot.infinity_polling(logger_level=1)
|
||||
try:
|
||||
bot.infinity_polling(logger_level=logging.ERROR)
|
||||
...
|
||||
except KeyboardInterrupt:
|
||||
logger.error('Bot', 'Stopping...')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue