Skip to content

Commit 706b2f6

Browse files
committed
Handle non-existing submissions
Somehow 5451 got into our system, but it doesn't exist anymore.
1 parent 5ba8175 commit 706b2f6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cfbot_commitfest_rpc.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ def get_thread_url_for_submission(commitfest_id, submission_id):
8383
url = f"{cfbot_config.COMMITFEST_HOST}/patch/{submission_id}/"
8484
candidates = []
8585
candidate = None
86-
for line in cfbot_util.slow_fetch(url).splitlines():
86+
submission_page = cfbot_util.slow_fetch(url, none_for_404=True)
87+
88+
if submission_page is None:
89+
return None
90+
91+
for line in submission_page.splitlines():
8792
groups = re.search(
8893
"""Latest at <a href="https://www.postgresql.org/message-id/([^"]+)">(2[^<]+)""",
8994
line,

0 commit comments

Comments
 (0)