Skip to content
Snippets Groups Projects
Commit c74c8885 authored by André's avatar André Committed by Philipp Hörist
Browse files

Silence 'git unavailable' message

parent 51a4c4b5
No related branches found
No related tags found
No related merge requests found
......@@ -3,10 +3,10 @@ import subprocess
__version__ = "0.99.2"
try:
node = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,
stdout=subprocess.PIPE).communicate()[0]
p = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,
stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
node = p.communicate()[0]
if node:
__version__ += '+' + node.decode('utf-8').strip()
except Exception:
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment