Private
Public Access
1
0

fix for when C2 log is off

This commit is contained in:
Sander Roosendaal
2019-06-26 12:06:04 +02:00
parent 112101f048
commit 860f1e50f5
2 changed files with 5 additions and 2 deletions

View File

@@ -696,8 +696,11 @@ def get_userid(access_token):
'Content-Type': 'application/json'}
import urllib
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()
try:

Binary file not shown.