Fix pycodestyle

This commit is contained in:
Aarni Halinen
2019-02-08 19:10:36 +02:00
parent 206ec80a9a
commit 3305704926
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ def ohlhafv_submit(request, *args, **kwargs):
}
)
send_email(email, subject, message)
try:
tg_message = render_to_string(
'ohlhafv:tgmsg.tpl', {
@@ -57,7 +57,7 @@ def ohlhafv_submit(request, *args, **kwargs):
'url': url})
bot = TelegramBot()
bot.broadcast(tg_message)
except: # tg spam is not critical. Ignore on failure
except Exception: # tg spam is not critical. Ignore on failure
pass
logging.debug(