Commit ed26b705 authored by Chris Jewell's avatar Chris Jewell
Browse files

Merge branch 'fix-download-retry' into 'master'

Fix to trap ChunkedEncodingError in data download

See merge request !36
parents 06fa18ec a8997304
......@@ -56,8 +56,9 @@ class CasesData:
df = pd.read_json(json.dumps(content["body"]))
print("Success", flush=True)
return df
except ConnectionResetError:
except (requests.ConnectionError, requests.RequestException) as e:
print("Failed", flush=True)
time.sleep(secs * 2 ** i)
raise ConnectionError(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment