From 9c9593b6a35181203e4fc59feed7f404bbf60287 Mon Sep 17 00:00:00 2001 From: Marlon Vermeulen Date: Fri, 17 Mar 2023 09:59:39 +0100 Subject: [PATCH] #365 change if to elif --- hydrolib/core/basemodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)