From 95d0c545544febfa5066a4b05eb22ecfdc4b2aa3 Mon Sep 17 00:00:00 2001 From: Joe Becher Date: Tue, 17 Mar 2020 14:57:15 -0400 Subject: [PATCH] enclose --- codecov/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codecov/__init__.py b/codecov/__init__.py index 3ec86ef2..bf3fb672 100644 --- a/codecov/__init__.py +++ b/codecov/__init__.py @@ -181,7 +181,7 @@ def check_output(cmd, **popen_args): def try_to_run(cmd, shell=False, cwd=None): try: return check_output(cmd, shell=shell, cwd=cwd) - except subprocess.CalledProcessError, FileNotFoundError as e: + except (subprocess.CalledProcessError, FileNotFoundError) as e: write(' Error running `%s`: %s' % (cmd, e.output or str(e))) return None