D4731: py3: cast exception to bytes
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Wed Sep 26 11:49:46 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG69b4a5b89dc5: py3: cast exception to bytes (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4731?vs=11349&id=11369
REVISION DETAIL
https://phab.mercurial-scm.org/D4731
AFFECTED FILES
mercurial/wireprotov2server.py
CHANGE DETAILS
diff --git a/mercurial/wireprotov2server.py b/mercurial/wireprotov2server.py
--- a/mercurial/wireprotov2server.py
+++ b/mercurial/wireprotov2server.py
@@ -29,6 +29,7 @@
)
from .utils import (
interfaceutil,
+ stringutil,
)
FRAMINGTYPE = b'application/mercurial-exp-framing-0005'
@@ -319,7 +320,8 @@
except Exception as e:
action, meta = reactor.onservererror(
outstream, command['requestid'],
- _('exception when invoking command: %s') % e)
+ _('exception when invoking command: %s') %
+ stringutil.forcebytestr(e))
if action == 'sendframes':
res.setbodygen(meta['framegen'])
To: indygreg, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list