From: Nate Case Date: Fri, 22 Aug 2008 20:58:06 +0000 (-0500) Subject: Python 2.4 exception printing compatibility X-Git-Tag: v0.9.0~367 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f56380e8933f47830fd59a03bcb9f1db3630c4c;p=thirdparty%2Fpatchwork.git Python 2.4 exception printing compatibility Use str(ex) instead of ex.message for reporting exceptions Signed-off-by: Nate Case Signed-off-by: Jeremy Kerr --- diff --git a/apps/patchwork/bin/parsemail.py b/apps/patchwork/bin/parsemail.py index 917cdd98..8e73c258 100755 --- a/apps/patchwork/bin/parsemail.py +++ b/apps/patchwork/bin/parsemail.py @@ -253,7 +253,7 @@ def main(args): try: patch.save() except Exception, ex: - print ex.message + print str(ex) if comment: if save_required: @@ -267,7 +267,7 @@ def main(args): try: comment.save() except Exception, ex: - print ex.message + print str(ex) return 0