Mercurial > hg-stable
changeset 25181:d26703eb3dc5
bundle2: use BaseException in bundle2
We can ensure we fail over properly in more cases.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 18 May 2015 13:23:14 -0500 |
parents | 3ff2a5dc7c20 |
children | ee665d3bf6dd |
files | mercurial/bundle2.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bundle2.py Mon May 18 13:20:19 2015 -0500 +++ b/mercurial/bundle2.py Mon May 18 13:23:14 2015 -0500 @@ -315,7 +315,7 @@ try: for part in iterparts: _processpart(op, part) - except Exception, exc: + except BaseException, exc: for part in iterparts: # consume the bundle content part.seek(0, 2) @@ -762,7 +762,7 @@ for chunk in self._payloadchunks(): yield _pack(_fpayloadsize, len(chunk)) yield chunk - except Exception, exc: + except BaseException, exc: # backup exception data for later exc_info = sys.exc_info() msg = 'unexpected error: %s' % exc