From 098620cd053a018345337755f83ad95a8b0eecef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Tue, 17 Oct 2017 13:20:20 +0200 Subject: [PATCH] Fix --- server/src/uds/services/OpenGnsys/og/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/uds/services/OpenGnsys/og/__init__.py b/server/src/uds/services/OpenGnsys/og/__init__.py index 013ae7760..1091bea5d 100644 --- a/server/src/uds/services/OpenGnsys/og/__init__.py +++ b/server/src/uds/services/OpenGnsys/og/__init__.py @@ -76,10 +76,11 @@ def ensureResponseIsValid(response, errMsg=None): raise Exception(errMsg) try: - res = json.loads(response.content) + return json.loads(response.content) except Exception: raise Exception('Error communicating with OpenGnsys: {}'.format(response.content[:128])) + class OpenGnsysClient(object): def __init__(self, username, password, endpoint, cache, verifyCert=False): self.username = username