updated scraoper
This commit is contained in:
@@ -14,6 +14,6 @@ importsources = {
|
||||
'nk': NKIntegration,
|
||||
'tp':TPIntegration,
|
||||
'rp3':RP3Integration,
|
||||
'polar': PolarIntegration
|
||||
'polar': PolarIntegration,
|
||||
}
|
||||
|
||||
|
||||
@@ -269,7 +269,7 @@ class NKIntegration(SyncIntegration):
|
||||
|
||||
def open(self, *args, **kwargs) -> str:
|
||||
r = self.rower
|
||||
if (r.nktoken == '') or (r.nktoken is None): # pragma: no cover
|
||||
if not r.nktoken: # pragma: no cover
|
||||
raise NoTokenError("User has no token")
|
||||
else:
|
||||
if (timezone.now() > r.nktokenexpirydate):
|
||||
|
||||
Reference in New Issue
Block a user