def my_handler(...):
try:
...
except Exception as e:
logger.error(traceback.format_exc())
raisewhile True:
try:
bot.polling(none_stop=True)
except requests.exceptions.ConnectionError:
print (" ConnectionError exception occured while polling, restart in 1 second...")
sleep(1)
continue
except telebot.apihelper.ApiException:
print (" ApiException exception occured while polling, restart in 1 second...")
sleep(1)
continue
except requests.exceptions.ReadTimeout:
print (" ReadTimeout exception occured while polling, restart in 1 second...")
sleep(1)
continue #
except Exception as e:
if logger_level and logger_level >= logging.ERROR:
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)
continuebot.infinity_polling(logger_level=logging.DEBUG)
Также можно поискать в аналогах вебархива тип archive.is или в дампах commoncrawl. Шансы найти там что-то сильно меньше, чем в вебархиве, но вдруг? Иногда там находят то, что почему-то в вебархив не попало.
И да, написать автора и произведение, дать ссылку - может быть полезно. Вдруг мы чего-то раскопаем?