webhooks: Don't fail if there is no todo.sr.ht

This commit is contained in:
Galen Abell 2021-12-09 14:30:43 +01:00 committed by Drew DeVault
parent ed74fc06c4
commit 34c5650cd8
1 changed files with 4 additions and 1 deletions

View File

@ -123,9 +123,12 @@ _ticket_url_re = re.compile(
$
""",
re.VERBOSE,
)
) if _todosrht else None
def _handle_commit_trailer(trailer, value, pusher, repo, commit):
if not _todosrht:
return
if trailer == "Fixes":
resolution = "fixed"
elif trailer == "Implements":