BUGFIX: In case sources are compiled outside of git, ran into error where trying to strip None.

This commit is contained in:
Cas Cremers 2012-12-14 15:33:01 +01:00
parent ba5166bd84
commit fb28a98086

View File

@ -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__':