fix(#1109): name an unexpected notary API response instead of a traceback

Gemini review finding: a missing key in Apple's response crashed the poll
with a bare KeyError. It now fails with the submission id and the start
of the response body.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat/1109-macos-signing
diffwireauto 3 days ago
parent 83408f55f2
commit bd6046adf7

@ -40,7 +40,11 @@ def get(url, auth=True):
while True:
try:
status = get(API + submission_id)["data"]["attributes"]["status"]
body = get(API + submission_id)
status = body["data"]["attributes"]["status"]
except (KeyError, TypeError):
print(f"::error::Unexpected notary API response for {submission_id}: {json.dumps(body)[:500]}")
sys.exit(1)
except urllib.error.HTTPError as error:
if error.code < 500:
print(f"::error::Notary API returned HTTP {error.code} for {submission_id}.")

Loading…
Cancel
Save

Powered by TurnKey Linux.