Skip to content

Commit

Permalink
Merge pull request #179 from habernal/patch-2
Browse files Browse the repository at this point in the history
Fixing #178
  • Loading branch information
crux82 authored Jul 8, 2024
2 parents 61e62c0 + eb1b6b9 commit fb9a504
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 fb9a504

Please sign in to comment.