Skip to content

Commit

Permalink
Fix sintax error
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Scarlato (Jungmann) committed May 25, 2017
1 parent abef19b commit 2882147
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_telegrambot/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def ready(self):
if self.mode == WEBHOOK_MODE:
try:
bot = telegram.Bot(token=token)
except InvalidToken
except InvalidToken:
logger.error('Invalid Token : {}'.format(token))
return
DjangoTelegramBot.dispatchers.append(Dispatcher(bot, None, workers=0))
Expand All @@ -189,7 +189,7 @@ def ready(self):
DjangoTelegramBot.updaters.append(updater)
DjangoTelegramBot.dispatchers.append(updater.dispatcher)
DjangoTelegramBot.__used_tokens.add(token)
except InvalidToken
except InvalidToken:
logger.error('Invalid Token : {}'.format(token))
return

Expand Down

0 comments on commit 2882147

Please sign in to comment.