From 2907b10dbb715a0e053fc281fdbbcca6fd94570b Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 3 Nov 2007 23:32:31 +0100 Subject: [PATCH] Snapshot e748f756c0. --- NEWS | 2 ++ lib/sugar/bundle/bundle.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index d5d4dbcf..3153b572 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +Snapshot e748f756c0 + * #4618: Make the shell service more resilient to failure. (tomeu) Snapshot 39aca0154d diff --git a/lib/sugar/bundle/bundle.py b/lib/sugar/bundle/bundle.py index 33fd1a81..3ff8b754 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)