Skip to content

Commit c98dd4e

Browse files
authored
bugfix: get_results_csv() use response.content, not response.raw (#52)
1 parent ae24882 commit c98dd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dune_client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def get_result_csv(self, job_id: str) -> ExecutionResultCSV:
120120
timeout=self.DEFAULT_TIMEOUT,
121121
)
122122
response.raise_for_status()
123-
return ExecutionResultCSV(data=BytesIO(response.raw))
123+
return ExecutionResultCSV(data=BytesIO(response.content))
124124

125125
def cancel_execution(self, job_id: str) -> bool:
126126
"""POST Execution Cancellation to Dune API for `job_id` (aka `execution_id`)"""

0 commit comments

Comments
 (0)