fix version string

This commit is contained in:
Denis Fomin 2012-03-18 23:53:11 +04:00
parent d35a62493a
commit a05046c69b
1 changed files with 2 additions and 1 deletions

View File

@ -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