diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-10-20 01:56:06 +0200 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-10-20 01:56:06 +0200 |
commit | 878d87270c4cd70847fe5701b11d9646861a0bf9 (patch) | |
tree | b977b64d84e812ca6d0d79f324e0d5976af72c74 /module | |
parent | Fix https://github.com/pyload/pyload/issues/2073 (diff) | |
download | pyload-878d87270c4cd70847fe5701b11d9646861a0bf9.tar.xz |
Update UnZip (2)
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/UnZip.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/UnZip.py b/module/plugins/internal/UnZip.py index 0b9115bc8..4d615a9c5 100644 --- a/module/plugins/internal/UnZip.py +++ b/module/plugins/internal/UnZip.py @@ -11,7 +11,7 @@ from module.plugins.internal.Extractor import Extractor, ArchiveError, CRCError, class UnZip(Extractor): __name__ = "UnZip" - __version__ = "1.19" + __version__ = "1.20" __status__ = "testing" __description__ = """Zip extractor plugin""" @@ -47,7 +47,7 @@ class UnZip(Extractor): badfile = z.testzip() except RuntimeError, e: - if "encrypted" in e.message: + if "encrypted" in e.args[0] or "Bad password" in e.args[0]: raise PasswordError else: raise CRCError("Archive damaged") @@ -74,7 +74,7 @@ class UnZip(Extractor): raise ArchiveError(e) except RuntimeError, e: - if "encrypted" in e: + if "encrypted" in e.args[0] or "Bad password" in e.args[0]: raise PasswordError else: raise ArchiveError(e) |