]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/bin/parsemail.py
parsemail.sh typo: Insert missing slash in path
[patchwork] / apps / patchwork / bin / parsemail.py
index 13c6d783d5a5b7329ef8e144de21f9166c9d60aa..8e73c258fce90e9354bf16275a0427e2be791dca 100755 (executable)
@@ -155,8 +155,8 @@ def find_content(project, mail):
 
     if commentbuf:
         if patch:
-           cpatch = patch
-       else:
+            cpatch = patch
+        else:
             cpatch = find_patch_for_comment(mail)
             if not cpatch:
                 return (None, None)
@@ -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