diff --git a/mercurial/error.py b/mercurial/error.py --- a/mercurial/error.py +++ b/mercurial/error.py @@ -311,7 +311,7 @@ class OutOfBandError(RemoteError): """Exception raised when a remote repo reports failure""" - def __init__(self, *messages, hint=None): + def __init__(self, *messages, **kwargs): # type: (Any, Optional[bytes]) -> None from .i18n import _ @@ -321,7 +321,7 @@ message = message.rstrip(b'\n') else: message = _(b"remote error") - super(OutOfBandError, self).__init__(message, hint=hint) + super(OutOfBandError, self).__init__(message, **kwargs) class ParseError(Abort):