Mercurial > hg-stable
changeset 43883:e63b27fb0595
ui: convert exception data to bytes when printing chained exception info
Caught by pytype.
Differential Revision: https://phab.mercurial-scm.org/D7670
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 14 Dec 2019 18:31:50 -0500 |
parents | e5f69e3bb3f6 |
children | 38d6aa768310 |
files | mercurial/ui.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ui.py Sat Dec 14 18:23:37 2019 -0500 +++ b/mercurial/ui.py Sat Dec 14 18:31:50 2019 -0500 @@ -1857,9 +1857,9 @@ # exclude frame where 'exc' was chained and rethrown from exctb self.write_err( b'Traceback (most recent call last):\n', - b''.join(exctb[:-1]), - b''.join(causetb), - b''.join(exconly), + encoding.strtolocal(''.join(exctb[:-1])), + encoding.strtolocal(''.join(causetb)), + encoding.strtolocal(''.join(exconly)), ) else: output = traceback.format_exception(exc[0], exc[1], exc[2])