mercurial/mail.py
changeset 46992 5fa019ceb499
parent 46991 83c0d144ef8d
child 46997 106402245301
--- a/mercurial/mail.py	Mon Apr 19 17:26:57 2021 -0400
+++ b/mercurial/mail.py	Mon Apr 19 20:38:52 2021 -0400
@@ -164,7 +164,7 @@
             recipients = [r[1] for r in inst.recipients.values()]
             raise error.Abort(b'\n' + b'\n'.join(recipients))
         except smtplib.SMTPException as inst:
-            raise error.Abort(inst)
+            raise error.Abort(stringutil.forcebytestr(inst))
 
     return send