hgext/notify.py
changeset 26587 56b2bcea2529
parent 26503 5a84a453b503
child 28416 d3c8183f429e
--- a/hgext/notify.py	Mon Oct 05 22:49:24 2015 -0700
+++ b/hgext/notify.py	Thu Oct 08 12:55:45 2015 -0700
@@ -135,7 +135,7 @@
 
 import email, socket, time
 from mercurial.i18n import _
-from mercurial import patch, cmdutil, util, mail
+from mercurial import patch, cmdutil, util, mail, error
 import fnmatch
 
 # Note for extension authors: ONLY specify testedwith = 'internal' for
@@ -277,7 +277,7 @@
         try:
             msg = p.parsestr(data)
         except email.Errors.MessageParseError as inst:
-            raise util.Abort(inst)
+            raise error.Abort(inst)
 
         # store sender and subject
         sender, subject = msg['From'], msg['Subject']