]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parser: codec lookup fails when a NUL (\x00) is in the name
authorDaniel Axtens <dja@axtens.net>
Wed, 28 Jun 2017 07:48:45 +0000 (17:48 +1000)
committerStephen Finucane <stephen@that.guru>
Wed, 28 Jun 2017 20:41:28 +0000 (21:41 +0100)
commit75c2cff7ba29fa7bc92428ade415e26dd4694696
treeb615ad501b044cfb2fa365597c75e63deb178053
parent8052c8decc9f6e37fd9f89887b7abbbd6cddcd06
parser: codec lookup fails when a NUL (\x00) is in the name

On Python3 this presents as a ValueError
On Python2 this presents as a TypeError

In both cases, catch these exceptions.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Stephen Finucane <stephen@that.guru>
patchwork/parser.py