Fix pycodestyle
This commit is contained in:
+2
-2
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user