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:
Dmitry Tantsur 2021-12-02 15:00:04 +01:00
parent 3a62aba648
commit 8346fbea52
1 changed files with 2 additions and 2 deletions

View File

@ -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'