From fb28a980863b0bf9b7e6f4bedbefecc8c1b2cc92 Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Fri, 14 Dec 2012 15:33:01 +0100 Subject: [PATCH] BUGFIX: In case sources are compiled outside of git, ran into error where trying to strip None. --- src/describe-version.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/describe-version.py b/src/describe-version.py index cb68042..0747525 100755 --- a/src/describe-version.py +++ b/src/describe-version.py @@ -38,10 +38,11 @@ def getDescription(): import sys import subprocess res = subprocess.check_output(["git","describe","--tags","--dirty"]+sys.argv[1:]) + res = res.strip() except: res = None - return res.strip() + return res if __name__ == '__main__':