mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-08-02 11:31:35 +00:00
accidentaly deleted error handle in earlier commit
This commit is contained in:
4
bot.py
4
bot.py
@@ -68,6 +68,10 @@ def dividend(bot, update):
|
|||||||
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():
|
||||||
"""Start the bot."""
|
"""Start the bot."""
|
||||||
|
Reference in New Issue
Block a user