Skip to content

Commit 02e930c

Browse files
committed
fix(storage): add default argument when query_parameters aren't passed in
1 parent c90ad3f commit 02e930c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/storage/src/storage3/_async/file_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,10 @@ async def download(
465465
response = await self._request(
466466
"GET",
467467
[*render_path, self.id, *path_parts],
468-
query_params={**transform_to_dict(transform_options), **query_params},
468+
query_params={
469+
**transform_to_dict(transform_options),
470+
**(query_params or {}),
471+
},
469472
)
470473
return response.content
471474

0 commit comments

Comments
 (0)