Commit 7e473800 authored by Fred Drake's avatar Fred Drake

Fix one bare except: clause.

parent ef4cdad0
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment