Skip to content

Commit d33ee17

Browse files
committed
Fix input parsing regression
- Invalid input paths were accidentally ignored instead of triggering error messages - The "$ deface cam" shortcut wasn't working properly
1 parent 7b4acc2 commit d33ee17

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deface/deface.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,9 @@ def main():
304304
if os.path.isdir(path):
305305
for file in os.listdir(path):
306306
ipaths.append(os.path.join(path,file))
307-
elif os.path.isfile(path):
307+
else:
308+
# Either a path to a regular file, the special 'cam' shortcut
309+
# or an invalid path. The latter two cases are handled below.
308310
ipaths.append(path)
309311

310312
base_opath = args.output

0 commit comments

Comments
 (0)