From 58202bd779c87b75988c357595f76f79ce5dfbec Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sun, 26 Sep 2010 23:29:06 -0400 Subject: [PATCH] Fixed this --- textures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/textures.py b/textures.py index aa5c31a..28953d5 100644 --- a/textures.py +++ b/textures.py @@ -64,10 +64,10 @@ def _find_file(filename, mode="rb"): for jarpath in jarpaths: if os.path.exists(jarpath): - jar = zipfile.ZipFile(jarpath) try: + jar = zipfile.ZipFile(jarpath) return jar.open(filename) - except KeyError: + except (KeyError, IOError): pass path = filename