mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-10-01 22:02:26 -05:00
improve non-json error handling
This commit is contained in:
3
iksm.py
3
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):")
|
||||
|
||||
Reference in New Issue
Block a user