diff --git a/HISTORY.rst b/HISTORY.rst index 5cabb08..499ec99 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -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) diff --git a/src/mega/mega.py b/src/mega/mega.py index f509f59..44a79c6 100644 --- a/src/mega/mega.py +++ b/src/mega/mega.py @@ -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}