From d0a5666899eee91a947babf4c4d67b5b895b6667 Mon Sep 17 00:00:00 2001 From: laerus Date: Wed, 21 Sep 2016 11:55:53 +0300 Subject: [PATCH] missed parens --- xonsh/prompt/vc_branch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xonsh/prompt/vc_branch.py b/xonsh/prompt/vc_branch.py index 244562f84..725ba1f59 100644 --- a/xonsh/prompt/vc_branch.py +++ b/xonsh/prompt/vc_branch.py @@ -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: