Skip to content

Commit

Permalink
build: check if fragment_filenames is empty
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Beaven <smileychris@gmail.com>
  • Loading branch information
umarcor and SmileyChris authored Mar 21, 2023
1 parent 4a32d64 commit dce8199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/towncrier/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def __main(
click.echo("Staging newsfile...", err=to_err)
_git.stage_newsfile(base_directory, news_file)

if should_remove_fragment_files(
if fragment_filenames and should_remove_fragment_files(
fragment_filenames,
answer_yes,
answer_keep,
Expand Down

0 comments on commit dce8199

Please sign in to comment.