Skip to content

Commit 90e0daf

Browse files
Merge pull request #385 from Blosc/lazyexpr-missing-operands
open lazyexpr don't fail if missing operands (wip)
2 parents b5412a1 + 63828f3 commit 90e0daf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/blosc2/lazyexpr.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3083,7 +3083,10 @@ def _open_lazyarray(array):
30833083
for key, value in operands.items():
30843084
if isinstance(value, str):
30853085
value = parent_path / value
3086-
op = blosc2.open(value)
3086+
try:
3087+
op = blosc2.open(value)
3088+
except FileNotFoundError:
3089+
op = None
30873090
operands_dict[key] = op
30883091
elif isinstance(value, dict):
30893092
# C2Array

0 commit comments

Comments
 (0)