Simplify and fix thin pack resolving.
[jelmer/dulwich-libgit2.git] / dulwich / server.py
index c08a2d5744a41b1a2dbdc3f1c1c620528ef184ce..45fdc9091a2c384a76346b49e2ed98932bad2fea 100644 (file)
@@ -642,7 +642,8 @@ class ReceivePackHandler(Handler):
 
     def _apply_pack(self, refs):
         f, commit = self.repo.object_store.add_thin_pack()
-        all_exceptions = (IOError, OSError, ChecksumMismatch, ApplyDeltaError)
+        all_exceptions = (IOError, OSError, ChecksumMismatch, ApplyDeltaError,
+                          AssertionError, socket.error, zlib.error)
         status = []
         unpack_error = None
         # TODO: more informative error messages than just the exception string