Skip to content

Commit 80a4a78

Browse files
Merge pull request #672 from DimitriPapadopoulos/PYL-W0714
Overlapping exceptions
2 parents 7c55be2 + 99ff844 commit 80a4a78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/blosc2/indexing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4377,7 +4377,7 @@ def storage_stats(self) -> tuple[int, int, float] | None:
43774377
try:
43784378
nbytes = self.nbytes
43794379
cbytes = self.cbytes
4380-
except (FileNotFoundError, OSError, RuntimeError, KeyError, ValueError):
4380+
except (OSError, RuntimeError, KeyError, ValueError):
43814381
if self._table is None:
43824382
return None
43834383
root = self._table._root_table
@@ -4398,7 +4398,7 @@ def storage_stats(self) -> tuple[int, int, float] | None:
43984398
obj = store[key]
43994399
nbytes += int(obj.nbytes)
44004400
cbytes += int(obj.cbytes)
4401-
except (FileNotFoundError, OSError, RuntimeError, KeyError, ValueError):
4401+
except (OSError, RuntimeError, KeyError, ValueError):
44024402
return None
44034403
cratio = math.inf if cbytes == 0 else nbytes / cbytes
44044404
return nbytes, cbytes, cratio

0 commit comments

Comments
 (0)