From 6922deb9892bd3f2deeea0a16595150689cc4850 Mon Sep 17 00:00:00 2001 From: Davte Date: Tue, 13 Nov 2018 22:11:42 +0100 Subject: [PATCH] Version --- davtelepot/__init__.py | 2 +- davtelepot/custombot.py | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index 42761ea..c6912e4 100644 --- a/davtelepot/__init__.py +++ b/davtelepot/__init__.py @@ -2,7 +2,7 @@ __author__ = "Davide Testa" __email__ = "davte@libero.it" __credits__ = "Marco Origlia" __license__ = "GNU General Public License v3.0" -__version__ = "1.3.2" +__version__ = "1.3.3" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/davtelepot/custombot.py b/davtelepot/custombot.py index 1ac4e6e..673aa69 100644 --- a/davtelepot/custombot.py +++ b/davtelepot/custombot.py @@ -1753,9 +1753,13 @@ class Bot(telepot.aio.Bot, Gettable): loop.run_until_complete(cls.check_task()) except KeyboardInterrupt: logging.info( - '\n\t\tYour script received a KeyboardInterrupt signal, " - "your bot{} being stopped.'.format( - 's are' if len(cls.instances) > 1 else ' is' + ( + "\n\t\tYour script received a KeyboardInterrupt signal, " + "your bot{} being stopped." + ).format( + 's are' + if len(cls.instances) > 1 + else ' is' ) ) @@ -1851,8 +1855,10 @@ class Bot(telepot.aio.Bot, Gettable): ) except KeyboardInterrupt: logging.info( - '\n\t\tYour script received a KeyboardInterrupt signal, " - "your bot{} being stopped.'.format( + ( + "\n\t\tYour script received a KeyboardInterrupt signal, " + "your bot{} being stopped." + ).format( 's are' if len(cls.instances) > 1 else ' is' ) )