diff --git a/modflowapi/extensions/data.py b/modflowapi/extensions/data.py index cec3812..bf733c1 100644 --- a/modflowapi/extensions/data.py +++ b/modflowapi/extensions/data.py @@ -558,7 +558,7 @@ def get_variable(self, name, model=None, package=None): try: values = self.mf6.get_value_ptr(var_addr) - except InputError: + except xmipy.errors.InputError: values = self.mf6.get_value(var_addr) self._ptrs[name.lower()] = values