mirror of
https://github.com/python/cpython.git
synced 2024-11-27 20:04:41 +08:00
Fix one bare except: clause.
This commit is contained in:
parent
ef4cdad090
commit
7e473800c3
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user