summaryrefslogtreecommitdiffstats
path: root/Lib/zipfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r--Lib/zipfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py
index 5dedc1b..6a7641f 100644
--- a/Lib/zipfile.py
+++ b/Lib/zipfile.py
@@ -7,7 +7,7 @@ import binascii
try:
import zlib # We may need its compression method
-except:
+except ImportError:
zlib = None
__all__ = ["BadZipfile", "error", "ZIP_STORED", "ZIP_DEFLATED", "is_zipfile",