From 1cfe9f89cbdb6cd325d98b4793e6a81b353ae98a Mon Sep 17 00:00:00 2001 From: eli fessler Date: Wed, 30 Nov 2022 11:35:48 -1000 Subject: [PATCH] fix error printing with `-i` from 470369e --- s3s.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3s.py b/s3s.py index 2e9d681..8c3ffbe 100755 --- a/s3s.py +++ b/s3s.py @@ -1084,7 +1084,7 @@ def post_result(data, ismonitoring, isblackout, istestrun, overview_data=None): if postbattle.status_code != 201: # Created (or already exists) print(f"Error uploading {utils.set_noun(which)[:-1]}.") detail_type = "vsHistoryDetail" if which == "ink" else "coopHistoryDetail" - result_id = data["data"][detail_type]["id"] + result_id = results[i]["data"][detail_type]["id"] print(f"{utils.set_noun(which)[:-1].capitalize()} ID: {result_id}") print("Message from server:") print(postbattle.content.decode('utf-8'))