# HG changeset patch # User Matt Harbison # Date 1672981486 18000 # Node ID 5f006f789373d1ce340bf51a90b4ec8b2e13e9af # Parent 92743e6d1a0c55febc17a0e0b3673abc1801c517 notify: force an exception wrapped by errors.Abort to bytestr Flagged by PyCharm and pytype. diff -r 92743e6d1a0c -r 5f006f789373 hgext/notify.py --- a/hgext/notify.py Thu Jan 05 19:53:02 2023 -0500 +++ b/hgext/notify.py Fri Jan 06 00:04:46 2023 -0500 @@ -450,7 +450,7 @@ 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']