fixed incorrect raise of NoTokenError
This commit is contained in:
@@ -755,7 +755,7 @@ def workout_c2_upload(user,w):
|
||||
if (checkworkoutuser(user,w)):
|
||||
c2userid = get_userid(r.c2token)
|
||||
if not c2userid:
|
||||
raise NoTokenError
|
||||
raise NoTokenError("User has no token")
|
||||
|
||||
data = createc2workoutdata(w)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user