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'}
|
'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()
|
||||||
try:
|
try:
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user