This commit is contained in:
Davte 2018-11-13 22:11:42 +01:00
parent 114990e6d4
commit 6922deb989
2 changed files with 12 additions and 6 deletions

View File

@ -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"

View File

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