mailpipe: add extra attributes to errors even if current attribute is None.
authorW. Trevor King <wking@tremily.us>
Sun, 2 Sep 2012 15:30:50 +0000 (11:30 -0400)
committerW. Trevor King <wking@tremily.us>
Sun, 2 Sep 2012 15:30:50 +0000 (11:30 -0400)
commit25affca94cc9e6979e2e43430d71a0d32de627df
tree27c50ec856112819e659afa40ff5b9721b506ec1
parentf36d4e5484e88933a4441ec963b28c1deeeaf20a
mailpipe: add extra attributes to errors even if current attribute is None.

With the old impementation, a default value of None would keep the
attribute from being added.  For example, if the error is raised with

  error.subject == None

`mailpipe` and `_parse_message` would not override that with their
known value.  Now they will.
pygrader/mailpipe.py