mirror of
https://github.com/python/cpython.git
synced 2025-11-19 18:47:27 +00:00
Fix one bare except: clause.
This commit is contained in:
parent
ef4cdad090
commit
7e473800c3
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ def is_zipfile(filename):
|
||||||
fpin.close()
|
fpin.close()
|
||||||
if endrec[0:4] == "PK\005\006" and endrec[-2:] == "\000\000":
|
if endrec[0:4] == "PK\005\006" and endrec[-2:] == "\000\000":
|
||||||
return 1 # file has correct magic number
|
return 1 # file has correct magic number
|
||||||
except:
|
except IOError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue