Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef4cdad commit 7e47380Copy full SHA for 7e47380
1 file changed
Lib/zipfile.py
@@ -81,7 +81,7 @@ def is_zipfile(filename):
81
fpin.close()
82
if endrec[0:4] == "PK\005\006" and endrec[-2:] == "\000\000":
83
return 1 # file has correct magic number
84
- except:
+ except IOError:
85
pass
86
87
0 commit comments