forked from LiveCarta/BookConverter
Fix decorator return
This commit is contained in:
@@ -44,7 +44,7 @@ class Access:
|
|||||||
try:
|
try:
|
||||||
value = function(*args, **kwargs)
|
value = function(*args, **kwargs)
|
||||||
if value is not None:
|
if value is not None:
|
||||||
return
|
return value
|
||||||
except:
|
except:
|
||||||
time.sleep(timeout)
|
time.sleep(timeout)
|
||||||
retries += 1
|
retries += 1
|
||||||
@@ -104,7 +104,7 @@ class Access:
|
|||||||
'refreshToken': self.refresh
|
'refreshToken': self.refresh
|
||||||
}
|
}
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
f'{self.url}/token', json=json_form,
|
f'{self.url}/token', json=json_form
|
||||||
# auth=('kiryl.miatselitsa', 'iK4yXCvdyHFEEOvG2v3F')
|
# auth=('kiryl.miatselitsa', 'iK4yXCvdyHFEEOvG2v3F')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user