From 88c0e90dd87ccb3ccd14ac03e7c9814bd8fc005d Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Wed, 22 Feb 2023 07:24:46 +0100 Subject: [PATCH] fix polar --- rowers/integrations/polar.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rowers/integrations/polar.py b/rowers/integrations/polar.py index 0adac679..9bc40472 100644 --- a/rowers/integrations/polar.py +++ b/rowers/integrations/polar.py @@ -253,8 +253,12 @@ class PolarIntegration(SyncIntegration): return 1 - def register_user(self, token): - _ = self.open() + def register_user(self, token, *args, **kwargs): + try: + _ = self.open() + except NoTokenError: + pass + authorizationstring = 'Bearer {token}'.format(token=token) headers = {