From 9112f205e28bd45eb0c08269b31557623c39703e Mon Sep 17 00:00:00 2001
From: Kyle Robbertze <kyle@paddatrapper.com>
Date: Mon, 4 May 2020 22:42:42 +0200
Subject: [PATCH] fix decode error

---
 python_apps/api_clients/api_clients/api_client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python_apps/api_clients/api_clients/api_client.py b/python_apps/api_clients/api_clients/api_client.py
index f89a1a9b3..d983c5c6c 100644
--- a/python_apps/api_clients/api_clients/api_client.py
+++ b/python_apps/api_clients/api_clients/api_client.py
@@ -141,7 +141,7 @@ class ApiRequest(object):
                     response = response.decode()
                 except (UnicodeDecodeError, AttributeError):
                     pass
-                data = json.loads(response.decode)
+                data = json.loads(response)
                 return data
             else:
                 raise InvalidContentType()