summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--swiftstory/SwiftStory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/swiftstory/SwiftStory.py b/swiftstory/SwiftStory.py
index 2f5ae36..9e3051a 100644
--- a/swiftstory/SwiftStory.py
+++ b/swiftstory/SwiftStory.py
@@ -18,7 +18,7 @@ def client_left_handler(client, server):
def message_received_handler(client, server, message):
try:
json_msg = json.loads(message)
- except:
+ except JSONDecodeError:
res = error('badly formatted json')
else:
op = json_msg['op']