BUGFIX: In case sources are compiled outside of git, ran into error where trying to strip None.
This commit is contained in:
parent
ba5166bd84
commit
fb28a98086
@ -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__':
|
||||
|
Loading…
Reference in New Issue
Block a user