Skip to content

Commit

Permalink
Fix input parsing regression
Browse files Browse the repository at this point in the history
- Invalid input paths were accidentally ignored instead of triggering
  error messages
- The "$ deface cam" shortcut wasn't working properly
  • Loading branch information
mdraw committed Dec 27, 2021
1 parent 7b4acc2 commit d33ee17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deface/deface.py
Expand Up @@ -304,7 +304,9 @@ def main():
if os.path.isdir(path):
for file in os.listdir(path):
ipaths.append(os.path.join(path,file))
elif os.path.isfile(path):
else:
# Either a path to a regular file, the special 'cam' shortcut
# or an invalid path. The latter two cases are handled below.
ipaths.append(path)

base_opath = args.output
Expand Down

0 comments on commit d33ee17

Please sign in to comment.