Skip to content

Commit d3a3651

Browse files
author
Jesse Whitehouse
committed
Applying PR feedback
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
1 parent 0739ccc commit d3a3651

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/databricks/sql/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def _handle_staging_get(self, operation:str, local_file:str, presigned_url:str,
372372

373373
# response.ok verifies the status code is not between 400-600.
374374
# Any 2xx or 3xx will evaluate r.ok == True
375-
if r.ok:
375+
if not r.ok:
376376
raise Error(f"Staging operation over HTTP was unsuccessful: {r.status_code}-{r.text}")
377377

378378
fp.write(r.content)

0 commit comments

Comments
 (0)