changeset 46080:1d252e73af61 stable

bugzilla: fix reporting of exceptions with py3
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 03 Dec 2020 22:49:01 +0100
parents e614eeb794f9
children 734d051d0efb
files hgext/bugzilla.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))