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 74095e2..8a113a0 100644
--- a/Lib/zipfile.py
+++ b/Lib/zipfile.py
@@ -81,7 +81,7 @@ def is_zipfile(filename):
fpin.close()
if endrec[0:4] == "PK\005\006" and endrec[-2:] == "\000\000":
return 1 # file has correct magic number
- except:
+ except IOError:
pass