From cdd35867b37ccae1b201eeda4f4c8125052a8967 Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Fri, 4 May 2018 17:41:48 +0200 Subject: [PATCH] upped sleep time on 502 in getjson to 3 sec, trying to prevent cascading fail --- etherdump/commands/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etherdump/commands/common.py b/etherdump/commands/common.py index c68bdaf..5210f47 100644 --- a/etherdump/commands/common.py +++ b/etherdump/commands/common.py @@ -58,7 +58,7 @@ def padpath2id (path): else: return p.decode("utf-8") -def getjson (url, max_retry=3, retry_sleep_time=0.5): +def getjson (url, max_retry=3, retry_sleep_time=3): ret = {} ret["_retries"] = 0 while ret["_retries"] <= max_retry: