mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-04-24 15:38:01 -05:00
gracefully exit on rare ill-formatted vsHistoryDetail error (#191)
This commit is contained in:
parent
fdd5ae8576
commit
51de74c816
10
s3s.py
10
s3s.py
|
|
@ -497,8 +497,14 @@ def prepare_battle_result(battle, ismonitoring, isblackout, overview_data=None):
|
|||
|
||||
## UUID ##
|
||||
##########
|
||||
full_id = utils.b64d(battle["id"])
|
||||
payload["uuid"] = str(uuid.uuid5(utils.S3S_NAMESPACE, full_id[-52:])) # input format: <YYYYMMDD>T<HHMMSS>_<uuid>
|
||||
try:
|
||||
full_id = utils.b64d(battle["id"])
|
||||
payload["uuid"] = str(uuid.uuid5(utils.S3S_NAMESPACE, full_id[-52:])) # input format: <YYYYMMDD>T<HHMMSS>_<uuid>
|
||||
except TypeError:
|
||||
print("Couldn't get the battle ID. This is likely an error on Nintendo's end; running the script again may fix it. Exiting.")
|
||||
print('\nDebug info:')
|
||||
print(json.dumps(battle))
|
||||
sys.exit(1)
|
||||
|
||||
## MODE ##
|
||||
##########
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user