changeset 28162:f8142cb77b1e

error: refactor OutOfBandError to inherit from HintException
author timeless <timeless@mozdev.org>
date Wed, 23 Dec 2015 17:38:24 +0000
parents 311eddddca49
children 1c1216182dc1
files mercurial/error.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/error.py
+++ b/mercurial/error.py
@@ -78,13 +78,9 @@
         from .i18n import _
         Abort.__init__(self, _('response expected'))
 
-class OutOfBandError(Exception):
+class OutOfBandError(HintException):
     """Exception raised when a remote repo reports failure"""
 
-    def __init__(self, *args, **kw):
-        Exception.__init__(self, *args)
-        self.hint = kw.get('hint')
-
 class ParseError(Exception):
     """Raised when parsing config files and {rev,file}sets (msg[, pos])"""