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