diff options
author | Nate Case <ncase@xes-inc.com> | 2008-08-22 15:58:06 -0500 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-08-23 11:04:43 +0800 |
commit | 7f56380e8933f47830fd59a03bcb9f1db3630c4c (patch) | |
tree | 0fdbbefbe49e1dd405c6ae176bca3d016c0d831c | |
parent | 7451e16588d2de6bce18fcc60b3be654ee591ac1 (diff) | |
download | patchwork-7f56380e8933f47830fd59a03bcb9f1db3630c4c.tar patchwork-7f56380e8933f47830fd59a03bcb9f1db3630c4c.tar.gz |
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>
-rwxr-xr-x | apps/patchwork/bin/parsemail.py | 4 |
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 |