Suppress error when not building from git

This commit is contained in:
Christian Dywan 2008-10-21 23:07:07 +02:00
parent 839d692ec4
commit ce66f54620

View file

@ -13,7 +13,7 @@ VERSION = '0.1.0'
try: try:
git = subprocess.Popen (['git', 'rev-parse', '--short', 'HEAD'], git = subprocess.Popen (['git', 'rev-parse', '--short', 'HEAD'],
stdout=subprocess.PIPE) stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if not git.wait (): if not git.wait ():
VERSION = (VERSION + '-' + git.stdout.read ()).strip () VERSION = (VERSION + '-' + git.stdout.read ()).strip ()
except: except: