py3: fix exception message encoding in infinitepush
Differential Revision: https://phab.mercurial-scm.org/D7195
--- a/hgext/infinitepush/__init__.py Fri Nov 01 10:57:31 2019 -0700
+++ b/hgext/infinitepush/__init__.py Fri Nov 01 17:39:17 2019 +0100
@@ -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: