3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

world: fix 0f26848 (we can't use log here)

This commit is contained in:
James Lu 2015-09-19 11:55:29 -07:00
parent 3c8da4934a
commit 82d129fed2

View File

@ -26,5 +26,5 @@ if version == "<unknown>":
# Get version from Git tags.
try:
version = 'v' + subprocess.check_output(['git', 'describe', '--tags']).decode('utf-8').strip()
except:
log.exception('Failed to get version from "git describe --tags".')
except Exception as e:
print('ERROR: Failed to get version from "git describe --tags": %s: %s' % (type(e).__name__, e))