# HG changeset patch # User Mads Kiilerich # Date 1607032141 -3600 # Node ID 1d252e73af61dc59dabbee6b968e5fa7b29fde8a # Parent e614eeb794f9d5473200e028e55f95e977b00f0b bugzilla: fix reporting of exceptions with py3 diff -r e614eeb794f9 -r 1d252e73af61 hgext/bugzilla.py --- a/hgext/bugzilla.py Thu Dec 03 18:42:23 2020 +0900 +++ b/hgext/bugzilla.py Thu Dec 03 22:49:01 2020 +0100 @@ -1211,4 +1211,4 @@ bz.update(bug, bugs[bug], ctx) bz.notify(bugs, stringutil.email(ctx.user())) except Exception as e: - raise error.Abort(_(b'Bugzilla error: %s') % e) + raise error.Abort(_(b'Bugzilla error: %s') % stringutil.forcebytestr(e))