From 6736c3fa2eb716f6ac3e0989de61f08537694627 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 30 Jul 2023 01:01:17 +0200 Subject: [PATCH] fix: compatibility with latest version of pgpy --- easywks/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easywks/types.py b/easywks/types.py index 6b09d2f..6a06825 100644 --- a/easywks/types.py +++ b/easywks/types.py @@ -103,7 +103,7 @@ class ConfirmationRequest: mpsig['Content-Disposition'] = 'attachment; filename="signature"' email = MIMEMultipart(_subtype=f'signed', _subparts=[mixed, mpsig], policy=default, protocol='application/pgp-signature') - email.set_param('micalg', f'pgp-{str(sig.hash_algorithm).split(".",1)[1].lower()}', requote=False) + email.set_param('micalg', f'pgp-{str(sig.hash_algorithm).lower()}', requote=False) email['Subject'] = 'Confirm your key publication' email['To'] = self._submitter_addr email['From'] = self._submission_addr