diff --git a/HISTORY.rst b/HISTORY.rst index ebb831a..5b72975 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -6,7 +6,7 @@ Release History 1.0.5 (unreleased) ------------------ -- Nothing changed yet. +- Increase the wait time in between failed API request retries. 1.0.4 (2019-11-18) diff --git a/src/mega/mega.py b/src/mega/mega.py index 16f1c35..f0c5bc3 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=2, min=2, max=30) + wait=wait_exponential(multiplier=2, min=2, max=60) ) def _api_request(self, data): params = {'id': self.sequence_num}