Skip to content

Commit

Permalink
trying to fix error:
Browse files Browse the repository at this point in the history
    File "versioneer.py", line 953, in run
    f.write(SHORT_VERSION_PY % versions)
    KeyError: 'branch'
during update with pip
  • Loading branch information
make-ing committed Apr 13, 2017
1 parent 6b064e2 commit eff45e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions versioneer.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,8 @@ def run(self):
if os.path.exists(target_versionfile):
os.unlink(target_versionfile)
f = open(target_versionfile, "w")
if 'branch' not in versions:
versions['branch'] = "unknown"
f.write(SHORT_VERSION_PY % versions)
f.close()

Expand Down

0 comments on commit eff45e5

Please sign in to comment.