Fix pbr if running without git or sdist

This commit is contained in:
Uggla 2016-02-13 18:57:28 +01:00
parent f0c9439947
commit 59f5007787

View File

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