Catch all exceptions from pbr when importing the root package
Apparently, pbr can raise a generic exception. Sigh. Change-Id: Ib11494769fa42516c953a7efa782515875b0e32b
This commit is contained in:
parent
3a62aba648
commit
8346fbea52
@ -17,8 +17,8 @@ try:
|
||||
|
||||
__version__ = pbr.version.VersionInfo(
|
||||
'bifrost').version_string()
|
||||
except ImportError:
|
||||
pass # Allow the CLI to work without pbr installed
|
||||
except Exception:
|
||||
pass # Allow the CLI to work without pbr installed or with it failing
|
||||
|
||||
__all__ = [
|
||||
'inventory'
|
||||
|
Loading…
x
Reference in New Issue
Block a user