Skip to content

Commit

Permalink
Merge pull request #51 from metacloud/release_string
Browse files Browse the repository at this point in the history
Use pbr's release_string
  • Loading branch information
timgclark authored Jul 28, 2017
2 parents 103adad + 79c93d9 commit e3318c2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions gilt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@

import pbr.version

try:
version_info = pbr.version.VersionInfo('gilt')
__version__ = version_info.release_string()
except AttributeError:
__version__ = None
version_info = pbr.version.VersionInfo('gilt') # noqa
__version__ = version_info.release_string()

0 comments on commit e3318c2

Please sign in to comment.