Antoine Pitrou <pit...@free.fr> added the comment: > I'm catching all errors and exceptions and zipfile still decompresses > it, that's what I've been trying to tell you. I don't face my original > problem anymore, I'm catching that exception, now zipfile considers > some passwords to be correct and throw no exception, it just > decompresses the file (which contains junk since the password was > wrong). That's for the second bullet of your message.
Then I suppose the file(s) inside the zip archive are not compressed, or the compressed contents are miraculously "good" enough for the zlib not to complain. But, really, unless you have a precise solution to propose, that's nothing Python can do anything about. (of course, if you have an idea about the contents of that zip file, you can devise an application-specific algorithm for validating the contents) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10876> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com