From 12224b70868cfeaf6d50da790388990421d56caf Mon Sep 17 00:00:00 2001 From: Achilles Rasquinha Date: Thu, 15 Feb 2018 12:45:05 +0530 Subject: [PATCH] bytes to str --- bench/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/app.py b/bench/app.py index a61bab83..87a8681f 100755 --- a/bench/app.py +++ b/bench/app.py @@ -269,7 +269,7 @@ def get_upstream_version(app, branch=None, bench_path='.'): try: contents = subprocess.check_output(['git', 'show', 'upstream/{branch}:{app}/__init__.py'.format(branch=branch, app=app)], cwd=repo_dir, stderr=subprocess.STDOUT) except subprocess.CalledProcessError as e: - if "Invalid object" in e.output: + if b"Invalid object" in e.output: return None else: raise