fix for when C2 log is off
This commit is contained in:
+4
-1
@@ -696,7 +696,10 @@ 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()
|
||||
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user