Private
Public Access
1
0

passing test_imports

This commit is contained in:
Sander Roosendaal
2023-02-11 17:48:39 +01:00
parent def98b9a85
commit 3a82d91d2a
4 changed files with 12 additions and 7 deletions

View File

@@ -313,8 +313,8 @@ class StravaIntegration(SyncIntegration):
def token_refresh(self, *args, **kwargs):
return super(StravaIntegration, self).token_refresh(*args, **kwargs)
def set_strava_athlete_id():
r = self.rower()
def set_strava_athlete_id(self, *args, **kwargs):
r = self.rower
if (r.stravatoken == '') or (r.stravatoken is None): # pragma: no cover
s = "Token doesn't exist. Need to authorize"
return custom_exception_handler(401, s)