tickets_full: 3398

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
3398 2007-01-30 01:52:30 2007-05-18 18:23:34 2019-06-24 00:51:26.276268 Unreviewed closed Core (Mail)     master duplicate send_mass_mail confused by non-ascii characters send_mass_mail barfs with UnicodeEncodeError when handed a non-ascii unicode instance, here's a q&d fix. {{{ Index: mail.py =================================================================== --- mail.py (wersja 4451) +++ mail.py (kopia robocza) @@ -50,6 +50,8 @@ if not recipient_list: continue from_email = from_email or settings.DEFAULT_FROM_EMAIL + if isinstance(message, unicode): + message = message.encode(settings.DEFAULT_CHARSET) msg = SafeMIMEText(message, 'plain', settings.DEFAULT_CHARSET) msg['Subject'] = subject msg['From'] = from_email }}} adrian anonymous unicode 0 1 0 1 0 0
Powered by Datasette · Query took 2.784ms