Skip to content

Commit

Permalink
add check for empty output filename format
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bonelis committed Jun 22, 2018
1 parent a480465 commit a66c0cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions phockup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def main(argv):
printer.line("Process only images with meta-information!")

if opt in ("-o", "--output-name"):
if not arg:
printer.error("Output file name format cannot be empty")
output_file_name_format = arg
printer.line("OutputFileName format: %s" % output_file_name_format)

Expand Down

0 comments on commit a66c0cc

Please sign in to comment.