Skip to content

Commit

Permalink
fix: handle pathlib paths in retrieve (PyPSA#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkstrp authored Oct 21, 2024
1 parent 0026b0f commit 7a4a7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def progress_retrieve(url, file, disable=False):
unit="B",
unit_scale=True,
unit_divisor=1024,
desc=file,
desc=str(file),
) as t:
with open(file, "wb") as f:
for data in response.iter_content(chunk_size=chunk_size):
Expand Down

0 comments on commit 7a4a7c7

Please sign in to comment.