changeset 25182:ee665d3bf6dd

exchange: catch down to BaseException when handling bundle2 We can now catch more things.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 18 May 2015 15:33:21 -0500
parents d26703eb3dc5
children 0d0ed375fbdf
files mercurial/exchange.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/exchange.py	Mon May 18 13:23:14 2015 -0500
+++ b/mercurial/exchange.py	Mon May 18 15:33:21 2015 -0500
@@ -1315,7 +1315,7 @@
                         def recordout(output):
                             r.newpart('output', data=output, mandatory=False)
                 tr.close()
-            except Exception, exc:
+            except BaseException, exc:
                 exc.duringunbundle2 = True
                 if captureoutput and r is not None:
                     parts = exc._bundle2salvagedoutput = r.salvageoutput()