some more
This commit is contained in:
@@ -975,9 +975,9 @@ def workout_c2_upload_view(request,id=0):
|
||||
url = "https://log.concept2.com/api/users/%s/results" % (c2userid)
|
||||
response = requests.post(url,headers=headers,data=json.dumps(data))
|
||||
except:
|
||||
message = "Unexpected Error: "+sys.exc_info()[0]
|
||||
message = "Unexpected Error: "+str(sys.exc_info()[0])
|
||||
with open("media/c2errors.log","a") as errorlog:
|
||||
errorlog.write("Unexpected Error: "+sys.exc_info()[0])
|
||||
errorlog.write("Unexpected Error: "+str(sys.exc_info()[0]))
|
||||
|
||||
# check for duplicate error first
|
||||
if (response.status_code == 409 ):
|
||||
@@ -995,7 +995,7 @@ def workout_c2_upload_view(request,id=0):
|
||||
except:
|
||||
message = "Something went wrong in workout_c2_upload_view. Response code 200/201 but C2 sync failed: "+response.text
|
||||
with open("media/c2errors.log","a") as errorlog:
|
||||
errorlog.write("Unexpected Error: "+sys.exc_info()[0])
|
||||
errorlog.write("Unexpected Error: "+str(sys.exc_info()[0]))
|
||||
|
||||
else:
|
||||
s = response
|
||||
|
||||
Reference in New Issue
Block a user