Commit f4b9d540 authored by David Douard's avatar David Douard
Browse files

[hooks] fix AnalyzeEmailText: Email.subject can be None

parent 7bca38df4593
......@@ -72,7 +72,7 @@ class AnalyzeEmailText(hook.Operation):
"""check if there are some change state instruction in the mail content"""
def precommit_event(self):
text =
text = or u''
for part in'text/plain'):
text += ' ' + part.actual_content()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment