mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-22 05:44:19 +00:00
bugfix
This commit is contained in:
parent
51c44fb67e
commit
018b073583
1 changed files with 5 additions and 1 deletions
6
main.py
6
main.py
|
@ -1094,7 +1094,11 @@ def selectpreset(bot, update):
|
|||
|
||||
|
||||
def handleerror(bot, update, error):
|
||||
bot.sendMessage(update.message.chat['id'], error)
|
||||
try:
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue