Skip to content

Commit 8920c7f

Browse files
committed
TASK: Add some logging to game_commands
This should help in future cases to identify when the message is none.
1 parent 479f3e8 commit 8920c7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ def send_mp_message(chat_id, text, message_id=None, parse_mode=None, reply_marku
9595

9696

9797
def game_commands(bot, update):
98+
if update.message is None:
99+
logger.warning("game_commands error happened again! Update: {}".format(update))
100+
98101
text = update.effective_message.text
99102
chat_id = update.effective_message.chat_id
100103
user = update.effective_user

0 commit comments

Comments
 (0)