1
0
Fork 0
forked from s3lph/matemat

Fixed a codestyle error.

This commit is contained in:
s3lph 2018-09-07 22:47:27 +02:00
parent b19c6edd7f
commit 1c5b442fea

View file

@ -72,7 +72,7 @@ def _send_receipt_mails(receipts: List[Receipt],
# Attempt to upgrade to a TLS connection
try:
con.starttls()
except:
except BaseException:
# If STARTTLS failed, only continue if explicitly requested by configuration
if config['SmtpEnforceTLS'] != '0':
logger.error('STARTTLS not supported by SMTP server, aborting!')