]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix one bare except: clause.
authorFred Drake <fdrake@acm.org>
Fri, 11 May 2001 19:52:57 +0000 (19:52 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 11 May 2001 19:52:57 +0000 (19:52 +0000)
Lib/zipfile.py

index 74095e2509214dbbd08c36f4d9d071b4bf3f48de..8a113a0fe106d944d56efb1c5fdbc588f6e62fd6 100644 (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