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