mirror of
https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git
synced 2025-08-01 19:11:32 +00:00
accidentaly deleted error handle in earlier commit
This commit is contained in:
4
bot.py
4
bot.py
@@ -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():
|
||||||
|
Reference in New Issue
Block a user