Queer European MD passionate about IT
Davte 6 tahun lalu
induk
melakukan
6922deb989
2 mengubah file dengan 12 tambahan dan 6 penghapusan
  1. 1 1
      davtelepot/__init__.py
  2. 11 5
      davtelepot/custombot.py

+ 1 - 1
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"
 

+ 11 - 5
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'
                 )
             )