Fix pycodestyle
This commit is contained in:
@@ -7,6 +7,7 @@ import requests
|
||||
from django.conf import settings
|
||||
from kaehmy.models import TelegramChannel
|
||||
|
||||
|
||||
class TelegramBot:
|
||||
'''
|
||||
A telegram bot api for whatever purposes
|
||||
|
||||
+1
-1
@@ -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