Skip to content

Commit 7dd22f9

Browse files
committed
Close open file handle
1 parent c461b33 commit 7dd22f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

virtualizarr/readers/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def maybe_open_loadable_vars_and_indexes(
8181
# if we only read the indexes we can just close the file right away as nothing is lazy
8282
if loadable_vars == {}:
8383
ds.close()
84+
fpath.close()
8485

8586
return loadable_vars, indexes
8687

0 commit comments

Comments
 (0)