Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e47380

Browse files
committed
Fix one bare except: clause.
1 parent ef4cdad commit 7e47380

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/zipfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def is_zipfile(filename):
8181
fpin.close()
8282
if endrec[0:4] == "PK\005\006" and endrec[-2:] == "\000\000":
8383
return 1 # file has correct magic number
84-
except:
84+
except IOError:
8585
pass
8686

8787

0 commit comments

Comments
 (0)