Closed jbdamask closed 1 year ago
You occasionally get things like this in the logs:
7/17/2023, 12:27:10 PM EDT | File "/app/wkid_smaaht.py", line 89, in handle_message_events 7/17/2023, 12:27:10 PM EDT | elif f"<@{bot_user_id}>" in body['event']['text']: 7/17/2023, 12:27:10 PM EDT | KeyError: 'text'
The code should handle exceptions gracefully and log the user's message to improve diagnosis
You occasionally get things like this in the logs:
7/17/2023, 12:27:10 PM EDT | File "/app/wkid_smaaht.py", line 89, in handle_message_events 7/17/2023, 12:27:10 PM EDT | elif f"<@{bot_user_id}>" in body['event']['text']: 7/17/2023, 12:27:10 PM EDT | KeyError: 'text'
The code should handle exceptions gracefully and log the user's message to improve diagnosis