We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb94066 commit ef01fceCopy full SHA for ef01fce
testflows/github/hetzner/runners/args.py
@@ -87,7 +87,8 @@ def path_type(v, check_exists=True):
87
try:
88
v = os.path.abspath(os.path.expanduser(v))
89
if check_exists:
90
- os.path.exists(v)
+ if not os.path.exists(v):
91
+ raise FileNotFoundError(f"path not found '{v}'")
92
except Exception as e:
93
raise ArgumentTypeError(str(e))
94
return v
0 commit comments