fix for when C2 log is off
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user