From 1c5b442fea388cd66e28de182db4e6a5967c717a Mon Sep 17 00:00:00 2001 From: s3lph Date: Fri, 7 Sep 2018 22:47:27 +0200 Subject: [PATCH] Fixed a codestyle error. --- matemat/webserver/pagelets/receipt_smtp_cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matemat/webserver/pagelets/receipt_smtp_cron.py b/matemat/webserver/pagelets/receipt_smtp_cron.py index 6095d7b..b9ceafe 100644 --- a/matemat/webserver/pagelets/receipt_smtp_cron.py +++ b/matemat/webserver/pagelets/receipt_smtp_cron.py @@ -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!')