summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2020-09-12 23:34:52 +0200
committerOlivier Gayot <olivier.gayot@sigexec.com>2020-09-12 23:36:26 +0200
commit8d2f12821955beff5839c11b16d82c0e2a87917b (patch)
treea50378503221297c3abf09cf804961fb536cdff1
parentb38fd4f184f96960c8815355a8216dbd3abb659f (diff)
Fix missing module name in exception type
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r--swiftstory/SwiftStory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/swiftstory/SwiftStory.py b/swiftstory/SwiftStory.py
index 580f1ea..de2a085 100644
--- a/swiftstory/SwiftStory.py
+++ b/swiftstory/SwiftStory.py
@@ -17,7 +17,7 @@ game_manager = swiftstory.GameManager.GameManager()
def message_received_handler(client, message):
try:
json_msg = json.loads(message)
- except JSONDecodeError:
+ except json.JSONDecodeError:
return error('badly formatted json')
op = json_msg['op']