1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-06-16 15:06:53 +00:00

accidentaly deleted error handle in earlier commit

This commit is contained in:
Anson 2019-05-28 05:28:28 -07:00
parent 230f6fdeac
commit 4da5d9933f

4
bot.py
View File

@ -67,6 +67,10 @@ def dividend(bot, update):
update.message.reply_text( update.message.reply_text(
text=reply, parse_mode=telegram.ParseMode.MARKDOWN text=reply, parse_mode=telegram.ParseMode.MARKDOWN
) )
def error(bot, update, error):
"""Log Errors caused by Updates."""
logger.warning('Update "%s" caused error "%s"', update, error)
def main(): def main():