Make backup path always set

This commit is contained in:
Veronica Berglyd Olsen
2023-08-08 19:50:20 +02:00
parent 12897ff2e1
commit c40d910b69
6 changed files with 26 additions and 38 deletions
+1 -2
View File
@@ -121,8 +121,7 @@ def checkUuid(value: Any, default: str) -> str:
def checkPath(value: Any, default: Path) -> Path:
"""Check if a value is a valid path. Non-empty strings are accepted.
"""
"""Check if a value is a valid path."""
if isinstance(value, Path):
return value
elif isinstance(value, str):