Skip to content

Commit 7465a32

Browse files
authored
fix(CellBudgetFile): trap OSError when detecting precision (#2772)
Fix the precision detection issue mentioned in MODFLOW-ORG/modflow6#2838 (comment)
1 parent 6910978 commit 7465a32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flopy/utils/binaryfile/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@ def _set_precision(self, precision="single"):
24272427

24282428
try:
24292429
self._build_index()
2430-
except (BudgetIndexError, EOFError) as e:
2430+
except (BudgetIndexError, EOFError, OSError) as e:
24312431
success = False
24322432
self.__reset()
24332433

0 commit comments

Comments
 (0)