From 656a511c72a09b19b6dc6170426b582bc79c4e40 Mon Sep 17 00:00:00 2001 From: Dima Tisnek Date: Thu, 20 Feb 2025 16:40:35 +0900 Subject: [PATCH 1/2] fix: error message is a string, not a tuple I imagine someone refactored and moved message out int a variable, but forgot that in that case comma after argument is significant. Fixes #339 --- attestations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attestations.py b/attestations.py index 69cc3fb..3bb4d5a 100644 --- a/attestations.py +++ b/attestations.py @@ -83,7 +83,7 @@ def assert_attestations_do_not_pre_exist( existing_attestations_list = '\n'.join(map(str, existing_attestations)) error_message = ( 'The following distributions already have publish attestations:' - f'{existing_attestations_list}', + f'{existing_attestations_list}' ) die(error_message) From b42ba673974535b148bb19e75a87d884e25e94a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=87=BA=F0=9F=87=A6=20Sviatoslav=20Sydorenko=20=28?= =?UTF-8?q?=D0=A1=D0=B2=D1=8F=D1=82=D0=BE=D1=81=D0=BB=D0=B0=D0=B2=20=D0=A1?= =?UTF-8?q?=D0=B8=D0=B4=D0=BE=D1=80=D0=B5=D0=BD=D0=BA=D0=BE=29?= Date: Thu, 20 Feb 2025 16:08:00 +0100 Subject: [PATCH 2/2] Add a whitespace before existsing attestations list --- attestations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attestations.py b/attestations.py index 3bb4d5a..41f2752 100644 --- a/attestations.py +++ b/attestations.py @@ -82,7 +82,7 @@ def assert_attestations_do_not_pre_exist( existing_attestations_list = '\n'.join(map(str, existing_attestations)) error_message = ( - 'The following distributions already have publish attestations:' + 'The following distributions already have publish attestations: ' f'{existing_attestations_list}' ) die(error_message)