chiark / gitweb /
stg mail crashes when there is no patch description
authorAngus Salkeld <ahsalkeld@gmail.com>
Mon, 24 Mar 2008 18:54:28 +0000 (18:54 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 24 Mar 2008 18:54:28 +0000 (18:54 +0000)
commitf3cec16e70129a705ec33feacf1cfbc6258ed8a8
tree037c43b073ee7598e352216bfad1ac59cb7f2c26
parent8d9e6a6c93568de2c0525cd18ab13097740b89a2
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