Skip to content

Commit

Permalink
Fixing rycolab#178
Browse files Browse the repository at this point in the history
Tested with generating sigdial with and without overwrite
  • Loading branch information
habernal authored Jul 3, 2024
1 parent cee96d3 commit eb1b6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aclpub2/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def generate_proceedings(path: str, overwrite: bool, outdir: str, nopax: bool, f
build_dir.mkdir(exist_ok=True)

# Throw if the build directory isn't empty, and the user did not specify an overwrite.
if len([build_dir.iterdir()]) > 0 and not overwrite:
if len([_ for _ in build_dir.iterdir()]) > 0 and not overwrite:
raise Exception(
f"Build directory {build_dir} is not empty, and the overwrite flag is false."
)
Expand Down

0 comments on commit eb1b6b9

Please sign in to comment.