diff --git a/docs/source/history.rst b/docs/source/history.rst index 1ad4b1e..a557d72 100644 --- a/docs/source/history.rst +++ b/docs/source/history.rst @@ -2,6 +2,11 @@ History ========= +dev + + - Ignore AssertionError exceptions generated when plugins are + loaded. + 0.7.2 - Fix logging support for Python 2.6. diff --git a/stevedore/extension.py b/stevedore/extension.py index e4794a4..4f9bee8 100644 --- a/stevedore/extension.py +++ b/stevedore/extension.py @@ -76,7 +76,7 @@ class ExtensionManager(object): ) if ext: extensions.append(ext) - except KeyboardInterrupt: + except (KeyboardInterrupt, AssertionError): raise except Exception as err: LOG.error('Could not load %r: %s', ep.name, err)