diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-20 02:08:36 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-20 02:08:36 +0200 |
commit | b5e61f51d45ad198600dc9d1d45ae0c8a30f9bf8 (patch) | |
tree | b977b64d84e812ca6d0d79f324e0d5976af72c74 | |
parent | Fix https://github.com/pyload/pyload/issues/2073 (diff) | |
parent | Update UnZip (2) (diff) | |
download | pyload-b5e61f51d45ad198600dc9d1d45ae0c8a30f9bf8.tar.xz |
Merge pull request #2078 from GammaC0de/patch-6
[UnZip ] Update (2)
-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) |