Skip to content

Commit 3e1cb08

Browse files
committed
flake8
1 parent 29a4062 commit 3e1cb08

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

telegram/dispatcher.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,11 @@ def start(self):
182182

183183
# Dispatch any errors
184184
except TelegramError as te:
185-
self.logger.warn("Error was raised while processing Update.")
185+
self.logger.warn("Error was raised while processing "
186+
"Update.")
186187
self.dispatchError(update, te)
187188

188-
# All other errors should not stop the thread, so just print them
189+
# All other errors should not stop the thread, just print them
189190
except:
190191
print_exc()
191192
else:

telegram/updater.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ def start_polling(self, poll_interval=0.0, timeout=10, network_delay=2):
105105
dispatcher_thread = Thread(target=self.dispatcher.start,
106106
name="dispatcher")
107107
updater_thread = Thread(target=self._start_polling,
108-
name="updater",
109-
args=(poll_interval, timeout,
110-
network_delay))
108+
name="updater",
109+
args=(poll_interval,
110+
timeout,
111+
network_delay))
111112

112113
# Start threads
113114
dispatcher_thread.start()
@@ -148,8 +149,12 @@ def start_webhook(self,
148149
dispatcher_thread = Thread(target=self.dispatcher.start,
149150
name="dispatcher")
150151
updater_thread = Thread(target=self._start_webhook,
151-
name="updater",
152-
args=(listen, port, url_path, cert, key))
152+
name="updater",
153+
args=(listen,
154+
port,
155+
url_path,
156+
cert,
157+
key))
153158

154159
# Start threads
155160
dispatcher_thread.start()

0 commit comments

Comments
 (0)