From 27a7dc415b57fd6c5d7560e9c32f86e8f198980d Mon Sep 17 00:00:00 2001 From: Rich O Date: Wed, 27 Nov 2019 15:34:52 -0500 Subject: [PATCH] fixing --- r0b3bot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/r0b3bot.py b/r0b3bot.py index 374d71d..1a9d25e 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -269,10 +269,8 @@ async def printstat(ctx): print(f" - Payload String: {payload}") response = requests.post(hassAPIURL, headers=hassHEADERS, data=payload) print(f" - POST Response: {response.text}") - except: + except Exception, e: # Do nothing if this fails - e = sys.exc_info()[0] - print(f" ! Unable to turn on light; DUMP: {e}") await ctx.send("Sorry, I was unable to turn on the light.") pass -- 2.39.5