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 = self.email.subject
text = self.email.subject or u''
for part in self.email.parts_in_order(prefered_mime_type='text/plain'):
try:
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