Increase the wait time in between failed API request retries.

This commit is contained in:
Richard O'Dwyer 2019-11-18 19:00:37 +00:00
parent e0c5fbdfcc
commit c3b99e222c
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ Release History
1.0.3 (unreleased) 1.0.3 (unreleased)
------------------ ------------------
- Nothing changed yet. - Increase the wait time in between failed API request retries.
1.0.2 (2019-11-07) 1.0.2 (2019-11-07)

View file

@ -141,7 +141,7 @@ class Mega:
@retry( @retry(
retry=retry_if_exception_type(RuntimeError), 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): def _api_request(self, data):
params = {'id': self.sequence_num} params = {'id': self.sequence_num}