error eingebaut

This commit is contained in:
holger.trampe 2021-08-01 19:45:10 +02:00
parent 23c14d947b
commit 1688988f35
1 changed files with 4 additions and 5 deletions

View File

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