Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #178 from travislbrundage/fix-setup-try-catch
Browse files Browse the repository at this point in the history
Fix erroneous trycatch
  • Loading branch information
bartvde committed Aug 11, 2017
2 parents 6566fd9 + add8c0b commit 038783e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -9,7 +9,6 @@ def get_version(version=None):
"Returns a version number with commit id if the git repo is present"
with open(os.path.join(here, 'VERSION')) as version_file:
version = version_file.read().strip()
commit = None
repo_dir = os.path.dirname(os.path.abspath(__file__))
try:
_commit = subprocess.Popen(
Expand All @@ -22,7 +21,7 @@ def get_version(version=None):
)
commit = _commit.communicate()[0].partition('\n')[0]
except:
continue
commit = None
if commit:
version = "{}.{}".format(version, commit)
return version
Expand Down

0 comments on commit 038783e

Please sign in to comment.