error eingebaut
This commit is contained in:
parent
23c14d947b
commit
1688988f35
|
|
@ -125,11 +125,10 @@ def getNCLoggedUserBySession(sid):
|
||||||
xpars = xmltodict.parse(r.text)
|
xpars = xmltodict.parse(r.text)
|
||||||
js = json.dumps(xpars)
|
js = json.dumps(xpars)
|
||||||
|
|
||||||
try:
|
|
||||||
final_json = json.loads(js)
|
final_json = json.loads(js)
|
||||||
return final_json['ocs']['data']['userId']
|
return final_json['ocs']['data']['userId']
|
||||||
except:
|
#except:
|
||||||
return redirect('users-dashboard')
|
# return redirect('users-dashboard')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue