We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8450734 commit e09daa0Copy full SHA for e09daa0
cubids/cli.py
@@ -31,9 +31,12 @@ def _path_exists(path, parser):
31
pathlib.Path
32
Absolute path to the given location.
33
"""
34
- if path is None or not Path(path).exists():
35
- raise parser.error(f"Path does not exist: <{path}>.")
36
- return Path(path).absolute()
+ if path is not None:
+ path = Path(path)
+
37
+ if path is None or not path.exists():
38
+ raise parser.error(f"Path does not exist: <{path.absolute()}>.")
39
+ return path.absolute()
40
41
42
def _is_file(path, parser):
0 commit comments