From c3b99e222c713997e86a60b5c07a9a1b11f61a55 Mon Sep 17 00:00:00 2001 From: Richard O'Dwyer Date: Mon, 18 Nov 2019 19:00:37 +0000 Subject: [PATCH] Increase the wait time in between failed API request retries. --- HISTORY.rst | 2 +- src/mega/mega.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}