##// END OF EJS Templates
bundle2: use BaseException in bundle2...
Pierre-Yves David -
r25181:d26703eb default
parent child Browse files
Show More
@@ -315,7 +315,7 b' def processbundle(repo, unbundler, trans'
315 try:
315 try:
316 for part in iterparts:
316 for part in iterparts:
317 _processpart(op, part)
317 _processpart(op, part)
318 except Exception, exc:
318 except BaseException, exc:
319 for part in iterparts:
319 for part in iterparts:
320 # consume the bundle content
320 # consume the bundle content
321 part.seek(0, 2)
321 part.seek(0, 2)
@@ -762,7 +762,7 b' class bundlepart(object):'
762 for chunk in self._payloadchunks():
762 for chunk in self._payloadchunks():
763 yield _pack(_fpayloadsize, len(chunk))
763 yield _pack(_fpayloadsize, len(chunk))
764 yield chunk
764 yield chunk
765 except Exception, exc:
765 except BaseException, exc:
766 # backup exception data for later
766 # backup exception data for later
767 exc_info = sys.exc_info()
767 exc_info = sys.exc_info()
768 msg = 'unexpected error: %s' % exc
768 msg = 'unexpected error: %s' % exc
General Comments 0
You need to be logged in to leave comments. Login now