forked from s3lph/matemat
Fixed a codestyle error.
This commit is contained in:
parent
b19c6edd7f
commit
1c5b442fea
1 changed files with 1 additions and 1 deletions
|
@ -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!')
|
||||
|
|
Loading…
Reference in a new issue