mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-09-27 11:46:23 -05:00
avoid SR typeerror (fix #99/#100)
Co-authored-by: eli <frozenpandaman@users.noreply.github.com>
This commit is contained in:
2
s3s.py
2
s3s.py
@@ -931,7 +931,7 @@ def prepare_job_result(job, ismonitoring, isblackout, overview_data=None, prevre
|
||||
try:
|
||||
payload["title_before"] = utils.b64d(prev_job["data"]["coopHistoryDetail"]["afterGrade"]["id"])
|
||||
payload["title_exp_before"] = prev_job["data"]["coopHistoryDetail"]["afterGradePoint"]
|
||||
except KeyError: # private or disconnect, or the json was invalid (expired job >50 ago) or something
|
||||
except KeyError and TypeError: # private or disconnect, or the json was invalid (expired job >50 ago) or something
|
||||
pass
|
||||
except json.decoder.JSONDecodeError:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user