Broader exception clause for conflict mail encryption

This commit is contained in:
s3lph 2022-04-17 01:11:48 +02:00
parent 96ec215e73
commit 235603e715

View file

@ -76,7 +76,7 @@ class ConflictMessage:
# support every possible key algorithm yet, esp. it can't encrypt to ed25519 keys.
try:
mime: email.mime.base.MIMEBase = self._encrypt_message(msg)
except pgpy.errors.PGPEncryptionError:
except Exception:
mime = email.mime.text.MIMEText(msg, _subtype='plain', _charset='utf-8')
# Set all the email headers
mime['Subject'] = f'MultiSchleuder {self._schleuder} - Key Conflict'