We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc79d72 commit 0955086Copy full SHA for 0955086
src/patchtest2/tests/core.py
@@ -111,7 +111,8 @@ def test_mbox_commit_message_presence(target):
111
112
# Check to see if there is content before the signoff
113
match = patterns.endcommit_messages_regex.search(target.commit_message)
114
- if not target.commit_message[: match.start()]:
115
- result = "FAIL"
+ if match is not None:
+ if not target.commit_message[:match.start()]:
116
+ result = "FAIL"
117
118
return PatchtestResult(target.subject, test_name, result, reason)
0 commit comments