Skip to content

Commit

Permalink
Merge pull request #1207 from Badiboy/master
Browse files Browse the repository at this point in the history
Post-release fix for infinity_polling
  • Loading branch information
Badiboy authored Jun 27, 2021
2 parents 8d8f234 + a29c4af commit 72ed7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telebot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def infinity_polling(self, timeout=20, long_polling_timeout=20, logger_level=log
while not self.__stop_polling.is_set():
try:
self.polling(none_stop=True, timeout=timeout, long_polling_timeout=long_polling_timeout,
allowed_updates=allowed_updates *args, **kwargs)
allowed_updates=allowed_updates, *args, **kwargs)
except Exception as e:
if logger_level and logger_level >= logging.ERROR:
logger.error("Infinity polling exception: %s", str(e))
Expand Down

0 comments on commit 72ed7c1

Please sign in to comment.