Commit 349923d7 authored by JackV's avatar JackV

Make message edit less error-prone

parent e18c5f1c
......@@ -13,7 +13,10 @@ bot = Bot(TOKEN)
def bits_handler(text):
msg = json.loads(text)
bot.edit_message_text("POuL HQ is now {}".format(msg["status"]["value"]), CHAT_ID, MESSAGE_ID)
try:
bot.edit_message_text("POuL HQ is now {}".format(msg["status"]["value"]), CHAT_ID, MESSAGE_ID)
except:
pass
return
class WebSocketClient:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment