tools.linux.kernel.org archive mirror
 help / color / mirror / Atom feed
* b4 ty unicode crash
@ 2020-12-28 16:13 Mark Brown
  2020-12-28 16:56 ` Konstantin Ryabitsev
  2020-12-28 18:18 ` Konstantin Ryabitsev
  0 siblings, 2 replies; 4+ messages in thread
From: Mark Brown @ 2020-12-28 16:13 UTC (permalink / raw)
  To: tools, konstantin

[-- Attachment #1: Type: text/plain, Size: 1480 bytes --]

Hi,

When I run b4 ty and it finds what looks like:

   https://lore.kernel.org/r/ec66399502514edbb1de3cf9bff08b1d@realtek.com

I get a traceback:

Generating 4 thank-you letters
Traceback (most recent call last):
  File "/home/broonie/git/b4/b4/command.py", line 236, in <module>
    cmd()
  File "/home/broonie/git/b4/b4/command.py", line 219, in cmd
    cmdargs.func(cmdargs)
  File "/home/broonie/git/b4/b4/command.py", line 61, in cmd_ty
    b4.ty.main(cmdargs)
  File "/home/broonie/git/b4/b4/ty.py", line 638, in main
    auto_thankanator(cmdargs)
  File "/home/broonie/git/b4/b4/ty.py", line 392, in auto_thankanator
    send_messages(applied, cmdargs.gitdir, cmdargs.outdir, wantbranch, since=cmdargs.since)
  File "/home/broonie/git/b4/b4/ty.py", line 429, in send_messages
    msg = generate_am_thanks(gitdir, jsondata, branch, since)
  File "/home/broonie/git/b4/b4/ty.py", line 351, in generate_am_thanks
    msg = make_reply(thanks_template, jsondata)
  File "/home/broonie/git/b4/b4/ty.py", line 96, in make_reply
    msg['Cc'] = b4.format_addrs(allcc)
  File "/home/broonie/git/b4/b4/__init__.py", line 2382, in format_addrs
    addrs.add(email.utils.formataddr((LoreMessage.clean_header(pair[0]), LoreMessage.clean_header(pair[1]))))
  File "/usr/lib/python3.7/email/utils.py", line 91, in formataddr
    address.encode('ascii')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 22-24: ordinal not in range(128)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 499 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-29 12:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-28 16:13 b4 ty unicode crash Mark Brown
2020-12-28 16:56 ` Konstantin Ryabitsev
2020-12-28 18:18 ` Konstantin Ryabitsev
2020-12-29 12:16   ` [tools] " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).