diff mercurial/wireproto.py @ 21618:7568f5c1c801

bundle2: move exception classes into the error module Exceptions should have known their place.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 28 May 2014 15:31:05 -0700
parents 0cfda08afd24
children 292331e906d7
line wrap: on
line diff
--- a/mercurial/wireproto.py	Wed May 28 14:22:24 2014 -0700
+++ b/mercurial/wireproto.py	Wed May 28 15:31:05 2014 -0700
@@ -803,7 +803,7 @@
         finally:
             fp.close()
             os.unlink(tempname)
-    except bundle2.BundleValueError, exc:
+    except error.BundleValueError, exc:
             bundler = bundle2.bundle20(repo.ui)
             bundler.newpart('B2X:ERROR:UNKNOWNPART', [('parttype', str(exc))])
             return streamres(bundler.getchunks())