Skip to content

Commit

Permalink
Raise ValueError if output format is not recognized.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentzo committed Sep 19, 2018
1 parent df1bc32 commit d37cefa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git_archive_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def add_file(file_path, arcname):
def add_file(file_path, arcname):
archive.add(file_path, arcname)
else:
raise RuntimeError("unknown format: {0}".format(output_format))
raise ValueError("unknown format: {0}".format(output_format))

def archiver(file_path, arcname):
self.LOG.debug("Compressing {0} => {1}...".format(file_path, arcname))
Expand Down

0 comments on commit d37cefa

Please sign in to comment.