We'd like to know when those operations fail in production so we can at
least inspect what happened through the email send to settings.ADMINS in
main().
Catching those exceptions early prevents that.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Stephen Finucane <stephen.finucane@intel.com>
patch.state = get_state(mail.get('X-Patchwork-State', '').strip())
patch.delegate = get_delegate(
mail.get('X-Patchwork-Delegate', '').strip())
- try:
- patch.save()
- except Exception, ex:
- print str(ex)
+ patch.save()
if comment:
if save_required:
comment.patch = patch
comment.submitter = author
comment.msgid = msgid
- try:
- comment.save()
- except Exception, ex:
- print str(ex)
+ comment.save()
return 0