# HG changeset patch # User Matt Harbison # Date 2023-01-06 05:04:46 # Node ID 5f006f789373d1ce340bf51a90b4ec8b2e13e9af # Parent 92743e6d1a0c55febc17a0e0b3673abc1801c517 notify: force an exception wrapped by errors.Abort to bytestr Flagged by PyCharm and pytype. diff --git a/hgext/notify.py b/hgext/notify.py --- a/hgext/notify.py +++ b/hgext/notify.py @@ -450,7 +450,7 @@ class notifier: try: msg = mail.parsebytes(data) except emailerrors.MessageParseError as inst: - raise error.Abort(inst) + raise error.Abort(stringutil.forcebytestr(inst)) # store sender and subject sender = msg['From']