From 24c6e813203c74a1c5c42d4e0923ae1e37198033 Mon Sep 17 00:00:00 2001 From: gongysh Date: Tue, 11 Sep 2012 11:03:58 +0800 Subject: [PATCH] Remove the exeception handler since it makes no sense. Bug #1048906 Change-Id: Idd4d20bb066a73b790155a8886bceea94f19805c --- quantum/agent/linux/interface.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/quantum/agent/linux/interface.py b/quantum/agent/linux/interface.py index a9bfdbcd3..8cf9a4dd9 100644 --- a/quantum/agent/linux/interface.py +++ b/quantum/agent/linux/interface.py @@ -280,13 +280,5 @@ class MetaInterfaceDriver(LinuxInterfaceDriver): def _load_driver(self, driver_provider): LOG.debug("Driver location:%s", driver_provider) - # If the plugin can't be found let them know gracefully - try: - LOG.info("Loading Driver: %s" % driver_provider) - plugin_klass = importutils.import_class(driver_provider) - except ClassNotFound: - LOG.exception("Error loading driver") - raise Exception("driver_provider not found. You can install a " - "Driver with: pip install \n" - "Example: pip install quantum-sample-driver") + plugin_klass = importutils.import_class(driver_provider) return plugin_klass(self.conf) -- 2.45.2