2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 08:30:39 +00:00

bytes to str

This commit is contained in:
Achilles Rasquinha 2018-02-15 12:45:05 +05:30
parent f961a9c32e
commit 12224b7086

View File

@ -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