From 7e473800c31e650ad573e5af21a6ed63e155c2f6 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 11 May 2001 19:52:57 +0000 Subject: [PATCH] Fix one bare except: clause. --- Lib/zipfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 74095e25092..8a113a0fe10 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -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