diff --git a/hydrolib/core/basemodel.py b/hydrolib/core/basemodel.py index 9834a44e5..08027fb7a 100644 --- a/hydrolib/core/basemodel.py +++ b/hydrolib/core/basemodel.py @@ -1020,7 +1020,7 @@ def __str__(self) -> str: def _change_to_path(filepath): if filepath is None: return filepath - if isinstance(filepath, Path): + elif isinstance(filepath, Path): return filepath else: return Path(filepath)