diff --git a/wscript b/wscript index 2c0c4276..3789ce84 100644 --- a/wscript +++ b/wscript @@ -29,7 +29,8 @@ VERSION = str (major) + '.' + str (minor) + '.' + str (micro) try: git = Utils.cmd_output (['git', 'rev-parse', '--short', 'HEAD'], silent=True) - VERSION = (VERSION + '-' + git).strip () + if git: + VERSION = (VERSION + '-' + git).strip () except: pass