Skip to content

Commit defd2ee

Browse files
fix(get value): fixed error handling when modflowapi fails to get a pointer to a value from the API (#9)
Co-authored-by: scottrp <45947939+scottrp@users.noreply.github.com>
1 parent de4452c commit defd2ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modflowapi/extensions/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def get_variable(self, name, model=None, package=None):
558558

559559
try:
560560
values = self.mf6.get_value_ptr(var_addr)
561-
except InputError:
561+
except xmipy.errors.InputError:
562562
values = self.mf6.get_value(var_addr)
563563

564564
self._ptrs[name.lower()] = values

0 commit comments

Comments
 (0)