stg mail crashes when there is no patch description
authorAngus Salkeld <ahsalkeld@gmail.com>
Thu, 20 Mar 2008 23:12:10 +0000 (23:12 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Thu, 20 Mar 2008 23:12:10 +0000 (23:12 +0000)
commitc897c87c16c66b08cfd4568f3f7b1a4b7d5d55ff
tree4a8fe0bf61fcf9e4f64cfeb3dc8267b3027af193
parent467a0a0ec6081b61f1aae814685a2fc0ec7cf315
stg mail crashes when there is no patch description

The error is:
File "/usr/lib/python2.4/site-packages/stgit/commands/mail.py", line
397, in __build_message
descr = p.get_description().strip()
AttributeError: 'NoneType' object has no attribute 'strip'

This patch tries to handle this a bit better by setting the
description to "<empty message>" and forcing the edit_patches option
on.
stgit/commands/mail.py