From fbcd86a67b0a23d17285ef7b44c7d66eb16ca9da Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Wed, 26 May 2021 22:25:30 +0100 Subject: [PATCH] Fix JSON response from Gotify calls --- src/Alertify/gotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Alertify/gotify.py b/src/Alertify/gotify.py index 9f98d76..37c2b3a 100644 --- a/src/Alertify/gotify.py +++ b/src/Alertify/gotify.py @@ -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)