Skip to content

Commit

Permalink
Fix on allowed_ids parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosplanchon authored Nov 11, 2019
1 parent d107969 commit b1677fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegramgetbotip/telegramgetbotip.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def start_bot(
"""
self.bot_token = Path(bot_token_file).read_text()
self.allowed_telegram_ids = [int(i) for i in Path(
allowed_telegram_ids_file).read_text().split("\n")]
allowed_telegram_ids_file).read_text().split("\n") if i.isnumeric()]

self.time_between_queries = time_between_queries
self.verbose = verbose
Expand Down

0 comments on commit b1677fd

Please sign in to comment.