Skip to content

Commit

Permalink
Merge pull request #109 from ptmminh/test/message_keyerror
Browse files Browse the repository at this point in the history
fix: manual 'test' script: '"text" is not a valid key in message["message"]'
  • Loading branch information
elliot-100 authored Apr 25, 2024
2 parents 1aaf7ff + 586d161 commit b337d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manual_test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _message_summary(message) -> str:
return (
f"id: {message['id']}, "
f"timestamp: {message['message']['timestamp']}, "
f"text: {_abbreviate(message['message']['text'], length=64)}, "
f"text: {_abbreviate(message['message']['text'] if message['message'].get('text') else '', length=64)}, "
)


Expand Down

0 comments on commit b337d64

Please sign in to comment.