Skip to content

Commit 89a971f

Browse files
committed
🚑 Avoid parsing missing Towncrier configs
1 parent 12a27ab commit 89a971f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chronographer/file_utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ async def parse_towncrier_config(
2828
file_path=config_filename,
2929
ref=ref,
3030
)
31-
break
31+
if config_content is not None: # File not found in the repo?
32+
break
3233
else:
3334
return {}
3435

0 commit comments

Comments
 (0)