mercurial/mail.py
branchstable
changeset 46683 b0253377e170
parent 45942 89a2afe31e82
child 46819 d4ba4d51f85f
--- a/mercurial/mail.py	Thu Mar 11 17:02:28 2021 -0500
+++ b/mercurial/mail.py	Thu Mar 11 17:04:58 2021 -0500
@@ -165,7 +165,7 @@
         try:
             s.login(username, password)
         except smtplib.SMTPException as inst:
-            raise error.Abort(inst)
+            raise error.Abort(stringutil.forcebytestr(inst))
 
     def send(sender, recipients, msg):
         try: