From: gongysh Date: Tue, 11 Sep 2012 03:03:58 +0000 (+0800) Subject: Remove the exeception handler since it makes no sense. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=24c6e813203c74a1c5c42d4e0923ae1e37198033;p=openstack-build%2Fneutron-build.git Remove the exeception handler since it makes no sense. Bug #1048906 Change-Id: Idd4d20bb066a73b790155a8886bceea94f19805c --- 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)