Decode stderr in repo qrexec calls

Before this change, "foobar\n" on stderr would be rendered (in the
warning dialog) as "b'foobar\n'", which is ugly. Now it'll be rendered
just as "foobar", followed by an actual newline character.
这个提交包含在:
AJ Jordan 2019-07-02 13:45:21 -07:00
父节点 4931bf9401
当前提交 6a5823b74a
找不到此签名对应的密钥
GPG 密钥 ID: 26794034633DBBC0

查看文件

@ -47,7 +47,7 @@ def _run_qrexec_repo(service, arg=''):
)
if p.stderr:
raise RuntimeError('qrexec call stderr was not empty',
{'stderr': p.stderr})
{'stderr': p.stderr.decode('utf-8')})
if p.returncode != 0:
raise RuntimeError('qrexec call exited with non-zero return code',
{'returncode': p.returncode})