Increase the wait time in between failed API request retries.
This commit is contained in:
parent
e0c5fbdfcc
commit
c3b99e222c
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ Release History
|
|||
1.0.3 (unreleased)
|
||||
------------------
|
||||
|
||||
- Nothing changed yet.
|
||||
- Increase the wait time in between failed API request retries.
|
||||
|
||||
|
||||
1.0.2 (2019-11-07)
|
||||
|
|
|
@ -141,7 +141,7 @@ class Mega:
|
|||
|
||||
@retry(
|
||||
retry=retry_if_exception_type(RuntimeError),
|
||||
wait=wait_exponential(multiplier=1, min=1, max=20)
|
||||
wait=wait_exponential(multiplier=2, min=2, max=30)
|
||||
)
|
||||
def _api_request(self, data):
|
||||
params = {'id': self.sequence_num}
|
||||
|
|
Loading…
Reference in a new issue