diff --git a/src/common/defs.py b/src/common/defs.py index 30b6dda3c..7172021ca 100644 --- a/src/common/defs.py +++ b/src/common/defs.py @@ -32,7 +32,8 @@ import subprocess try: node = subprocess.Popen('hg tip --template "{node|short}"', shell=True, stdout=subprocess.PIPE).communicate()[0] - version += '-' + node + if node: + version += '-' + node except Exception: pass