fix
This commit is contained in:
@@ -59,7 +59,13 @@ def rower_rojabo_authorize(request): # pragma: no cover
|
||||
|
||||
@login_required()
|
||||
def rower_integration_authorize(request, source='c2'):
|
||||
integration = importsources[source](request.user)
|
||||
try:
|
||||
integration = importsources[source](request.user)
|
||||
except KeyError:
|
||||
if source == 'garmin':
|
||||
return rower_garmin_authorize(request)
|
||||
if source == 'rojabo':
|
||||
return rower_rojabo_authorize(request)
|
||||
url = integration.make_authorization_url()
|
||||
return HttpResponseRedirect(url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user