Catch all other errors at the end

This commit is contained in:
woclass
2022-10-06 12:52:00 +08:00
parent 8887b205ee
commit 557b0c8730

View File

@@ -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)