Entropy/EntropyRepositorySocketClientCommands:

- on convert_stream_to_object() handle zlib errors too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2316 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-07-31 08:33:55 +00:00
parent 6e2bd52bb9
commit 7320a093a4
+2 -2
View File
@@ -19373,7 +19373,7 @@ class EntropySocketClientCommands:
class EntropyRepositorySocketClientCommands(EntropySocketClientCommands):
import entropyTools, socket, struct
import entropyTools, socket, struct, zlib
def __init__(self, EntropyInterface, ServiceInterface):
if not isinstance(EntropyInterface, (EquoInterface, ServerInterface)) and \
@@ -19490,7 +19490,7 @@ class EntropyRepositorySocketClientCommands(EntropySocketClientCommands):
error = False
try:
data = self.Service.stream_to_object(data, gzipped)
except (EOFError,IOError,):
except (EOFError,IOError,self.zlib.error,):
mytxt = _("cannot convert stream into object")
self.Entropy.updateProgress(
"[%s:%s|%s:%s|%s:%s] %s" % (