1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-21 18:03:54 +03:00
This commit is contained in:
Adolfo Gómez García 2017-10-17 13:20:20 +02:00
parent 214f9c397b
commit 098620cd05

View File

@ -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