Fix JSON response from Gotify calls

This commit is contained in:
Scott Wallace 2021-05-26 22:25:30 +01:00
parent a4688c4442
commit fbcd86a67b

View file

@ -56,7 +56,7 @@ class Gotify:
}
if len(response.content) > 0:
try:
resp_obj['json'] = response.json
resp_obj['json'] = json.loads(response.content.decode())
except json.decoder.JSONDecodeError as error:
logging.error('Could not parse JSON: %s', error)