##// END OF EJS Templates
mail: force SMTPException to bytes before wrapping in error.Abort...
Matt Harbison -
r47754:5fa019ce default
parent child Browse files
Show More
@@ -164,7 +164,7 b' def _smtp(ui):'
164 recipients = [r[1] for r in inst.recipients.values()]
164 recipients = [r[1] for r in inst.recipients.values()]
165 raise error.Abort(b'\n' + b'\n'.join(recipients))
165 raise error.Abort(b'\n' + b'\n'.join(recipients))
166 except smtplib.SMTPException as inst:
166 except smtplib.SMTPException as inst:
167 raise error.Abort(inst)
167 raise error.Abort(stringutil.forcebytestr(inst))
168
168
169 return send
169 return send
170
170
General Comments 0
You need to be logged in to leave comments. Login now