mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-21 18:03:54 +03:00
Fix
This commit is contained in:
parent
214f9c397b
commit
098620cd05
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user