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