Manage dynamic plugins for Python applications
Go to file
Julien Danjou 3668de2513 driver: raise by default on import failure
When using the DriverManager class, if the driver fails to load, it's
actually better by default to re-raise the exception. It's not something
possible when loading multiple extension, but it's safe to do so with
drivers. This just changes the default behaviour, and it can still be
overridden.

The upside of that change is that when you try to load a driver that
cannot be loaded because of missing dependency, you actually get the
ImportError backtrace on your screen rather than the useless:
  RuntimeError: No 'foo' driver found, looking for 'bar'

which doesn't help at all. And the default mechanism that logs via
LOG.error() doesn't print anything at the screen if the application
didn't configure the logging subsystem.

Change-Id: I67d9e13a07c822c54dd16ac9ae7716747a24dd73
2014-04-25 14:51:45 +02:00
docs prep history for 0.14 release 2014-01-27 15:33:23 -05:00
stevedore driver: raise by default on import failure 2014-04-25 14:51:45 +02:00
tools Import run_cross_tests.sh from oslo-incubator 2014-04-03 09:03:23 -07:00
.gitignore Switch to pbr 2013-09-18 17:53:39 +02:00
.gitreview Update .gitreview after moving the repository 2014-02-07 20:40:10 +00:00
.travis.yml add pypy to travis config 2013-09-22 10:19:25 -04:00
CONTRIBUTING.rst fix typo in contrib docs 2013-12-20 22:57:40 +00:00
LICENSE add license 2012-06-19 14:33:24 -04:00
MANIFEST.in Include all images from docs in sdist 2013-06-12 14:03:31 -04:00
README.rst Update readme with links to bug tracker and source 2014-03-04 09:09:16 -08:00
announce.rst prep history for 0.14 release 2014-01-27 15:33:23 -05:00
openstack-common.conf Import run_cross_tests.sh from oslo-incubator 2014-04-03 09:03:23 -07:00
requirements.txt Switch to pbr 2013-09-18 17:53:39 +02:00
run_sphinx Add example of loading as a driver 2013-06-05 18:02:12 -04:00
setup.cfg driver: raise by default on import failure 2014-04-25 14:51:45 +02:00
setup.py a work-around to avoid cpython bug (15881) 2013-10-24 13:43:09 +08:00
tox.ini Add venv environment to tox 2013-12-18 16:43:13 +00:00

README.rst

stevedore

Manage dynamic plugins for Python applications