Skip to content

Commit 3e78fd9

Browse files
committed
fix format=csv bug in client
1 parent 6582272 commit 3e78fd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client/delphi_epidata.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def _request(params):
7272
long and returns a 414.
7373
"""
7474
try:
75+
if "format" in params and params["format"]=="csv":
76+
return Epidata._request_with_retry(params).text
7577
return Epidata._request_with_retry(params).json()
7678
except Exception as e:
7779
return {'result': 0, 'message': 'error: ' + str(e)}

0 commit comments

Comments
 (0)