]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/bin/parsemail.py
Python 2.4 exception printing compatibility
[patchwork] / apps / patchwork / bin / parsemail.py
index 917cdd9862424751217864e723617505cfcb2694..8e73c258fce90e9354bf16275a0427e2be791dca 100755 (executable)
@@ -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