Fix exception handling in xend start-of-day.

Signed-off-by: Steven Hand <steven@xensource.com>
This commit is contained in:
Steven Hand committed 2006-12-14 20:58:27 +00:00
1 parent a451e41cb7
commit 58295d5027
1 file changed
+2 -2
@@ -93,7 +93,7 @@ class XendStorageRepository:
open(uuid_file, 'w').write(new_uuid + '\n')
return new_uuid
except IOError:
log.exception()
log.exception("Failed to determine SR UUID")
return uuid.createString()
@@ -232,7 +232,7 @@ class XendStorageRepository:
if cfg_path and os.path.exists(cfg_path):
os.unlink(cfg_path)
except OSError:
log.exception()
log.exception("Failed to destroy image")
del self.images[image_uuid]
return True
finally:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.