From c872b4582189b96b84192571cc4acd44d2097781 Mon Sep 17 00:00:00 2001 From: eli fessler Date: Sat, 8 Oct 2022 12:54:35 -1000 Subject: [PATCH] improve non-json error handling --- iksm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iksm.py b/iksm.py index 24f9c23..6371c21 100644 --- a/iksm.py +++ b/iksm.py @@ -320,7 +320,8 @@ def get_bullet(web_service_token, web_view_ver, app_user_agent, user_lang, user_ bullet_resp = json.loads(r.text) bullet_token = bullet_resp["bulletToken"] except (json.decoder.JSONDecodeError, TypeError): - print("Got non-JSON response from Nintendo.") + print("Got non-JSON response from Nintendo (in api/bullet_tokens step:") + print(bullet_resp) sys.exit(1) except: print("Error from Nintendo (in api/bullet_tokens step):")