Patchwork D7195: py3: fix exception message encoding in infinitepush

login
register
mail settings
Submitter phabricator
Date Nov. 1, 2019, 5:28 p.m.
Message ID <87cc82f5c07e4dfd68df89a1a8a36eb7@localhost.localdomain>
Download mbox | patch
Permalink /patch/42664/
State Not Applicable
Headers show

Comments

phabricator - Nov. 1, 2019, 5:28 p.m.
Closed by commit rHGf8e10e3e001f: py3: fix exception message encoding in infinitepush (authored by touilleMan).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7195?vs=17449&id=17452

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7195/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7195

AFFECTED FILES
  hgext/infinitepush/__init__.py

CHANGE DETAILS




To: touilleMan, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/hgext/infinitepush/__init__.py b/hgext/infinitepush/__init__.py
--- a/hgext/infinitepush/__init__.py
+++ b/hgext/infinitepush/__init__.py
@@ -959,7 +959,7 @@ 
             service,
             eventtype=b'failure',
             elapsedms=(time.time() - start) * 1000,
-            errormsg=str(e),
+            errormsg=stringutil.forcebytestr(e),
             **kwargs
         )
         raise
@@ -1223,7 +1223,7 @@ 
             scratchbranchparttype,
             eventtype=b'failure',
             elapsedms=(time.time() - parthandlerstart) * 1000,
-            errormsg=str(e),
+            errormsg=stringutil.forcebytestr(e),
         )
         raise
     finally: