From 557b0c87302abe2d167feac4ee4f4b5332e2071e Mon Sep 17 00:00:00 2001 From: woclass Date: Thu, 6 Oct 2022 12:52:00 +0800 Subject: [PATCH] Catch all other errors at the end --- iksm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iksm.py b/iksm.py index e5866da..cae0020 100644 --- a/iksm.py +++ b/iksm.py @@ -323,7 +323,7 @@ def get_bullet(web_service_token, web_view_ver, app_user_agent, user_lang, user_ except (json.decoder.JSONDecodeError, TypeError): print("Got non-JSON response from Nintendo.") sys.exit(1) - except KeyError: + except: print("Error from Nintendo (in api/bullet_tokens step):") print(json.dumps(bullet_resp, indent=2)) sys.exit(1)