mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 23:27:49 +01:00
flake8
This commit is contained in:
parent
29a4062945
commit
3e1cb08567
2 changed files with 13 additions and 7 deletions
|
@ -182,10 +182,11 @@ class Dispatcher:
|
|||
|
||||
# Dispatch any errors
|
||||
except TelegramError as te:
|
||||
self.logger.warn("Error was raised while processing Update.")
|
||||
self.logger.warn("Error was raised while processing "
|
||||
"Update.")
|
||||
self.dispatchError(update, te)
|
||||
|
||||
# All other errors should not stop the thread, so just print them
|
||||
# All other errors should not stop the thread, just print them
|
||||
except:
|
||||
print_exc()
|
||||
else:
|
||||
|
|
|
@ -106,7 +106,8 @@ class Updater:
|
|||
name="dispatcher")
|
||||
updater_thread = Thread(target=self._start_polling,
|
||||
name="updater",
|
||||
args=(poll_interval, timeout,
|
||||
args=(poll_interval,
|
||||
timeout,
|
||||
network_delay))
|
||||
|
||||
# Start threads
|
||||
|
@ -149,7 +150,11 @@ class Updater:
|
|||
name="dispatcher")
|
||||
updater_thread = Thread(target=self._start_webhook,
|
||||
name="updater",
|
||||
args=(listen, port, url_path, cert, key))
|
||||
args=(listen,
|
||||
port,
|
||||
url_path,
|
||||
cert,
|
||||
key))
|
||||
|
||||
# Start threads
|
||||
dispatcher_thread.start()
|
||||
|
|
Loading…
Reference in a new issue