Merge "Remove the exeception handler since it makes no sense."

This commit is contained in:
Jenkins 2012-09-11 04:49:15 +00:00 committed by Gerrit Code Review
commit 6f8939ee96
1 changed files with 1 additions and 9 deletions

View 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)