From b47d7b54cca8ff142eaadf38c8bb425bf11af2cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 25 Mar 2018 23:57:39 +0200 Subject: Handle invalid nonces --- ccxt_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ccxt_wrapper.py') diff --git a/ccxt_wrapper.py b/ccxt_wrapper.py index 4ed37d9..97f359f 100644 --- a/ccxt_wrapper.py +++ b/ccxt_wrapper.py @@ -33,7 +33,7 @@ class poloniexE(poloniex): retriable = any(re.match(call, path) for call in self.RETRIABLE_CALLS) if api == "public" or method == "GET" or retriable: return retry_call(origin_request, fargs=[path], fkwargs=kwargs, - tries=10, delay=1, exceptions=(RequestTimeout,)) + tries=10, delay=1, exceptions=(RequestTimeout, InvalidNonce)) else: return origin_request(path, **kwargs) -- cgit v1.2.3