Skip to content

Commit 6ee5844

Browse files
vvfedorenkofacebook-github-bot
authored andcommitted
skip patchsets which have empty subject
Summary: Skip patchsets which have empty subject line as currently the logic provides empty line for the filter and returns all the patches. Proper tests will be added later as we have to fix things first Reviewed By: chantra Differential Revision: D68493150 fbshipit-source-id: bbfaad5c896c20f2322195a6a1254bb78fa538d3
1 parent f6b43d2 commit 6ee5844

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kernel_patches_daemon/patchwork.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,10 @@ async def get_relevant_subjects(self) -> Sequence[Subject]:
751751
all_series = await asyncio.gather(*tasks)
752752

753753
for series in all_series:
754+
if series.subject.strip() == "":
755+
logger.error(f"Malformed series name: {series.name}")
756+
err_malformed_series.add(1)
757+
continue
754758
self.known_series[series.id] = series
755759

756760
if series.subject not in subjects:

0 commit comments

Comments
 (0)