# HG changeset patch # User Gregory Szorc # Date 1548550397 28800 # Node ID 26761665bdfe8948089cbecb9adae693f0cf617c # Parent 5c73441a47e535a7a0b192f9b087476b94558b84 convert: print exception message directly Otherwise the default repr() implementation will b'' prefix the returned str on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5729 diff -r 5c73441a47e5 -r 26761665bdfe hgext/convert/convcmd.py --- a/hgext/convert/convcmd.py Sat Jan 26 16:45:25 2019 -0800 +++ b/hgext/convert/convcmd.py Sat Jan 26 16:53:17 2019 -0800 @@ -123,7 +123,7 @@ exceptions.append(inst) if not ui.quiet: for inst in exceptions: - ui.write("%s\n" % pycompat.bytestr(inst)) + ui.write("%s\n" % pycompat.bytestr(inst.args[0])) raise error.Abort(_('%s: missing or unsupported repository') % path) def convertsink(ui, path, type):