Skip to content

Commit

Permalink
Remove the exeception handler since it makes no sense.
Browse files Browse the repository at this point in the history
Bug #1048906

Change-Id: Idd4d20bb066a73b790155a8886bceea94f19805c
  • Loading branch information
gongysh committed Sep 11, 2012
1 parent 39b74e4 commit 24c6e81
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions quantum/agent/linux/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,5 @@ def unplug(self, device_name, bridge=None, namespace=None):

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)

0 comments on commit 24c6e81

Please sign in to comment.