We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d209756 commit 2a1dcceCopy full SHA for 2a1dcce
main.py
@@ -135,6 +135,9 @@ def game_commands(bot, update):
135
136
def error(bot, update, error):
137
"""Log Errors caused by Updates."""
138
+ if update is None:
139
+ return
140
+
141
logger.warning('Update "%s" caused error "%s"', update, error)
142
143
db = DBwrapper.get_instance()
0 commit comments