This commit is contained in:
Marco Pesenti Gritti
2007-11-03 23:32:31 +01:00
parent e748f756c0
commit 2907b10dbb
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -85,7 +85,10 @@ class Bundle:
if self._unpacked:
path = os.path.join(self._path, filename)
if os.path.isfile(path):
file = open(path)
try:
file = open(path)
except IOError:
logging.info('Cannot read %s' % path)
else:
zip_file = zipfile.ZipFile(self._path)
path = os.path.join(self._zip_root_dir, filename)