hgext/narrow/narrowwirepeer.py
changeset 45682 d2e1dcd4490d
parent 43506 9f70512ae2cf
child 45942 89a2afe31e82
--- a/hgext/narrow/narrowwirepeer.py	Thu Oct 08 15:35:44 2020 -0700
+++ b/hgext/narrow/narrowwirepeer.py	Thu Oct 08 13:37:31 2020 -0700
@@ -13,7 +13,6 @@
     extensions,
     hg,
     narrowspec,
-    pycompat,
     wireprototypes,
     wireprotov1peer,
     wireprotov1server,
@@ -125,7 +124,7 @@
             )
     except error.Abort as exc:
         bundler = bundle2.bundle20(repo.ui)
-        manargs = [(b'message', pycompat.bytestr(exc))]
+        manargs = [(b'message', exc.message)]
         advargs = []
         if exc.hint is not None:
             advargs.append((b'hint', exc.hint))