]> arthur.barton.de Git - bup.git/commitdiff
client.py: replace a never-used GitError with a ClientError.
authorAvery Pennarun <apenwarr@gmail.com>
Fri, 4 Feb 2011 11:01:33 +0000 (03:01 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Fri, 4 Feb 2011 11:01:33 +0000 (03:01 -0800)
Nobody ever tried calling that function, so it's really just an assertion
that never triggered.  Which is good, because it was trying to throw an
exception that wasn't available in the current namespace.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
lib/bup/client.py

index 4a7c3698b0d3dada94754c709996e1b616430874..8d2fbb99fef23c4755ac8c32ed5542993f1400fa 100644 (file)
@@ -309,7 +309,7 @@ class PackWriter_Remote(git.PackWriter):
         return id
 
     def abort(self):
-        raise GitError("don't know how to abort remote pack writing")
+        raise ClientError("don't know how to abort remote pack writing")
 
     def _raw_write(self, datalist, sha):
         assert(self.file)