Skip to content

Commit

Permalink
fix telegram bug
Browse files Browse the repository at this point in the history
  • Loading branch information
askovpen committed Sep 3, 2016
1 parent caaa16e commit 0d7ff91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pokemongo_bot/event_handlers/telegram_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def handle_event(self, event, sender, level, formatted_msg, data):
thread.start_new_thread(self.tbot.run)
except Exception as inst:
self.tbot = None
return
if self.master:
if not re.match(r'^[0-9]+$', str(self.master)):
return
Expand Down

0 comments on commit 0d7ff91

Please sign in to comment.