mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 00:41:00 +01:00
missed parens
This commit is contained in:
parent
44363ae19c
commit
d0a5666899
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ def _get_git_branch(q):
|
|||
try:
|
||||
status = subprocess.check_output(['git', 'status'],
|
||||
stderr=subprocess.DEVNULL)
|
||||
except subprocess.CalledProcessError, OSError:
|
||||
except (subprocess.CalledProcessError, OSError):
|
||||
q.put(None)
|
||||
else:
|
||||
status = status.decode().split()
|
||||
|
@ -133,7 +133,7 @@ def _git_dirty_working_directory(q):
|
|||
try:
|
||||
status = subprocess.check_output(['git', 'status'],
|
||||
stderr=subprocess.DEVNULL)
|
||||
except subprocess.CalledProcessError, OSError:
|
||||
except (subprocess.CalledProcessError, OSError):
|
||||
q.put(None)
|
||||
if status is not None:
|
||||
if b'nothing to commit' in status:
|
||||
|
|
Loading…
Add table
Reference in a new issue