diff --git a/redfish/__init__.py b/redfish/__init__.py index f24eeae..ce09d8f 100644 --- a/redfish/__init__.py +++ b/redfish/__init__.py @@ -17,5 +17,10 @@ import pbr.version from redfish.main import * #import redfish.types - -__version__ = pbr.version.VersionInfo('redfish').version_string() +try: + __version__ = pbr.version.VersionInfo('redfish').version_string() +except Exception, e: + if "Versioning for this project requires either an sdist tarball" in e.message: + pass + else: + raise