Fix JSON response from Gotify calls
This commit is contained in:
parent
a4688c4442
commit
fbcd86a67b
|
@ -56,7 +56,7 @@ class Gotify:
|
||||||
}
|
}
|
||||||
if len(response.content) > 0:
|
if len(response.content) > 0:
|
||||||
try:
|
try:
|
||||||
resp_obj['json'] = response.json
|
resp_obj['json'] = json.loads(response.content.decode())
|
||||||
except json.decoder.JSONDecodeError as error:
|
except json.decoder.JSONDecodeError as error:
|
||||||
logging.error('Could not parse JSON: %s', error)
|
logging.error('Could not parse JSON: %s', error)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue