# HG changeset patch # User Pierre-Yves David # Date 1398134581 25200 # Node ID a92619a2dbd70ef0cd9b95b37b8ffa1a7fcd5d03 # Parent b056777221bf4e44dbd97b84ba3e086e4aa5a5c6 bundle2: catch UnknownPartError during pull We narrow the exception catching while pulling. diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -584,7 +584,7 @@ bundle = pullop.remote.getbundle('pull', **kwargs) try: op = bundle2.processbundle(pullop.repo, bundle, pullop.gettransaction) - except KeyError, exc: + except UnknownPartError, exc: raise util.Abort('missing support for %s' % exc) assert len(op.records['changegroup']) == 1 pullop.cgresult = op.records['changegroup'][0]['return']