Skip to content

Commit e609ef3

Browse files
author
Jesse Whitehouse
committed
Add check for null local_file per PR feedback
Signed-off-by: Jesse Whitehouse <[email protected]>
1 parent f612795 commit e609ef3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/databricks/sql/client.py

+3
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,9 @@ def _handle_staging_get(
389389
Raise an exception if request fails. Returns no data.
390390
"""
391391

392+
if local_file is None:
393+
raise Error("Cannot perform GET without specifying a local_file")
394+
392395
with open(local_file, "wb") as fp:
393396
r = requests.get(url=presigned_url, headers=headers)
394397

0 commit comments

Comments
 (0)