Merge branch '2-homeassistant-api-connection-is-broken' into 'master'
as e Closes #2 See merge request Bots/r0b3BOT!34
This commit was merged in pull request #44.
This commit is contained in:
commit
7a18bdcc43
1 file changed
+1
-1
+1
-1
@@ -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.")
|
||||
|
||||
Reference in new issue
Block a user