mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-22 13:54:19 +00:00
bugfix
This commit is contained in:
parent
51c44fb67e
commit
018b073583
1 changed files with 5 additions and 1 deletions
4
main.py
4
main.py
|
@ -1094,7 +1094,11 @@ def selectpreset(bot, update):
|
||||||
|
|
||||||
|
|
||||||
def handleerror(bot, update, error):
|
def handleerror(bot, update, error):
|
||||||
|
try:
|
||||||
bot.sendMessage(update.message.chat['id'], error)
|
bot.sendMessage(update.message.chat['id'], error)
|
||||||
|
except AttributeError:
|
||||||
|
# Magari invece che pass are questo si potrebbe mandare un msg di debug o roba del genere
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
updater.dispatcher.add_handler(CommandHandler('ping', ping))
|
updater.dispatcher.add_handler(CommandHandler('ping', ping))
|
||||||
|
|
Loading…
Reference in a new issue