diff options
-rw-r--r-- | swiftstory/SwiftStory.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swiftstory/SwiftStory.py b/swiftstory/SwiftStory.py index de2a085..770e347 100644 --- a/swiftstory/SwiftStory.py +++ b/swiftstory/SwiftStory.py @@ -20,7 +20,7 @@ def message_received_handler(client, message): except json.JSONDecodeError: return error('badly formatted json') - op = json_msg['op'] + op = json_msg.get('op') if op == 'join_game': try: game_name = json_msg['game_name'] |