fix: compatibility with latest version of pgpy
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
s3lph 2023-07-30 01:01:17 +02:00
parent a114f24314
commit 6736c3fa2e
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5

View file

@ -103,7 +103,7 @@ class ConfirmationRequest:
mpsig['Content-Disposition'] = 'attachment; filename="signature"' mpsig['Content-Disposition'] = 'attachment; filename="signature"'
email = MIMEMultipart(_subtype=f'signed', _subparts=[mixed, mpsig], policy=default, email = MIMEMultipart(_subtype=f'signed', _subparts=[mixed, mpsig], policy=default,
protocol='application/pgp-signature') 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['Subject'] = 'Confirm your key publication'
email['To'] = self._submitter_addr email['To'] = self._submitter_addr
email['From'] = self._submission_addr email['From'] = self._submission_addr