Skip to content

Commit 10c5963

Browse files
umarcorSmileyChris
andcommitted
build: check if fragment_filenames is empty
Co-authored-by: Chris Beaven <[email protected]>
1 parent 4a32d64 commit 10c5963

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/towncrier/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ def should_remove_fragment_files(
279279
answer_yes: bool,
280280
answer_keep: bool,
281281
) -> bool:
282+
if not fragment_filenames:
283+
click.echo("No news fragments to remove. Skipping...")
284+
return False
282285
try:
283286
if answer_keep:
284287
click.echo("Keeping the following files:")

0 commit comments

Comments
 (0)