Private
Public Access
1
0

Merge tag 'v10.02' into develop

bla
This commit is contained in:
Sander Roosendaal
2019-06-26 12:10:59 +02:00

View File

@@ -696,7 +696,10 @@ def get_userid(access_token):
'Content-Type': 'application/json'} 'Content-Type': 'application/json'}
import urllib import urllib
url = "https://log.concept2.com/api/users/me" url = "https://log.concept2.com/api/users/me"
response = requests.get(url,headers=headers) try:
response = requests.get(url,headers=headers)
except:
return 0
me_json = response.json() me_json = response.json()