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' ) )