From 7f56380e8933f47830fd59a03bcb9f1db3630c4c Mon Sep 17 00:00:00 2001 From: Nate Case Date: Fri, 22 Aug 2008 15:58:06 -0500 Subject: 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 --- apps/patchwork/bin/parsemail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/patchwork/bin/parsemail.py b/apps/patchwork/bin/parsemail.py index 917cdd9..8e73c25 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 -- cgit v1.2.3