summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorNate Case <ncase@xes-inc.com>2008-08-22 15:58:06 -0500
committerJeremy Kerr <jk@ozlabs.org>2008-08-23 11:04:43 +0800
commit7f56380e8933f47830fd59a03bcb9f1db3630c4c (patch)
tree0fdbbefbe49e1dd405c6ae176bca3d016c0d831c /apps
parent7451e16588d2de6bce18fcc60b3be654ee591ac1 (diff)
downloadpatchwork-7f56380e8933f47830fd59a03bcb9f1db3630c4c.tar.bz2
patchwork-7f56380e8933f47830fd59a03bcb9f1db3630c4c.tar.xz
Python 2.4 exception printing compatibility
Use str(ex) instead of ex.message for reporting exceptions Signed-off-by: Nate Case <ncase@xes-inc.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps')
-rwxr-xr-xapps/patchwork/bin/parsemail.py4
1 files 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