From 4d343f1b257779381f72f85364f0a76ccd111c63 Mon Sep 17 00:00:00 2001 From: Richard O'Dwyer Date: Mon, 18 Nov 2019 20:58: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 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}