Fix one bare except: clause.

This commit is contained in:
Fred Drake 2001-05-11 19:52:57 +00:00
parent ef4cdad090
commit 7e473800c3

View File

@ -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