only catch CalledProcessError when determining git branch

This commit is contained in:
adam j hartz 2015-03-21 18:58:17 -04:00
parent 38ee9195e6
commit 3cb3aeeb0e

View file

@ -53,7 +53,7 @@ def current_branch(cwd=None):
s = s.strip()
if s != '':
branch = s
except:
except subprocess.CalledProcessError:
pass
return branch