From 8d2f12821955beff5839c11b16d82c0e2a87917b Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 12 Sep 2020 23:34:52 +0200 Subject: Fix missing module name in exception type Signed-off-by: Olivier Gayot --- swiftstory/SwiftStory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swiftstory') 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'] -- cgit v1.2.3