From bda0244ed85657f43a27ed8237a66b68bc4ee7d1 Mon Sep 17 00:00:00 2001 From: Noam Meltzer Date: Fri, 17 Jun 2016 16:52:25 +0300 Subject: [PATCH] updater: fix print in log --- telegram/ext/updater.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram/ext/updater.py b/telegram/ext/updater.py index cba48aaf6..b958d6550 100644 --- a/telegram/ext/updater.py +++ b/telegram/ext/updater.py @@ -380,9 +380,9 @@ class Updater(object): dispatcher.ASYNC_QUEUE.put(0) for i, thr in enumerate(threads): - self.logger.debug('Waiting for async thread {0}/{1} to end'.format(i, total)) + self.logger.debug('Waiting for async thread {0}/{1} to end'.format(i + 1, total)) thr.join() - self.logger.debug('async thread {0}/{1} has ended'.format(i, total)) + self.logger.debug('async thread {0}/{1} has ended'.format(i + 1, total)) def _join_threads(self): for thr in self.__threads: