
On Jul 22 08:23PM, bianca@linux.vnet.ibm.com wrote:
From: Bianca Carvalho <bianca@linux.vnet.ibm.com>
Removed all sys.exit(1) calls from both files to avoid killing Wokd.
Where all the sys.exit(1) calls removed? :-P
Also added an Exception to not load kimchi plugin (servers.py) in case network or storagepool does not exist or is not active.
Patch is OK, only the commit msg is not synchronized with the changes in the code :-)
Signed-off-by: Bianca Carvalho <bianca@linux.vnet.ibm.com> --- src/wok/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/wok/server.py b/src/wok/server.py index 8a02596..04bf1bc 100644 --- a/src/wok/server.py +++ b/src/wok/server.py @@ -179,6 +179,7 @@ class Server(object):
self.app = cherrypy.tree.mount(WokRoot(model_instance, dev_env), config=self.configObj) + self._load_plugins(options)
# Terminate proxy when cherrypy server is terminated @@ -201,7 +202,7 @@ class Server(object):
try: plugin_app = import_class(plugin_class)(options) - except ImportError, e: + except (ImportError, Exception), e: cherrypy.log.error_log.error( "Failed to import plugin %s, " "error: %s" % (plugin_class, e.message) -- 2.7.4
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
-- Paulo Ricardo Paz Vital Linux Technology Center, IBM Systems http://www.ibm.com/linux/ltc/