Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib/sugar/bundle/bundle.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sugar/bundle/bundle.py')
-rw-r--r--lib/sugar/bundle/bundle.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sugar/bundle/bundle.py b/lib/sugar/bundle/bundle.py
index 33fd1a8..3ff8b75 100644
--- a/lib/sugar/bundle/bundle.py
+++ b/lib/sugar/bundle/bundle.py
@@ -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)