]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove the exeception handler since it makes no sense.
authorgongysh <gongysh@cn.ibm.com>
Tue, 11 Sep 2012 03:03:58 +0000 (11:03 +0800)
committergongysh <gongysh@cn.ibm.com>
Tue, 11 Sep 2012 03:18:37 +0000 (11:18 +0800)
Bug #1048906

Change-Id: Idd4d20bb066a73b790155a8886bceea94f19805c

quantum/agent/linux/interface.py

index a9bfdbcd39328471252f662a634bd7577e310444..8cf9a4dd9d903c948e4312b0a41a0139e9fa99e8 100644 (file)
@@ -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 <plugin-name>\n"
-                            "Example: pip install quantum-sample-driver")
+        plugin_klass = importutils.import_class(driver_provider)
         return plugin_klass(self.conf)