From 0056809a5512efdc6cea1363bb04e24c8fd3696a Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Sun, 14 Mar 2021 17:34:24 -0400 Subject: [PATCH] Clean up error message (for mypy) --- src/allmydata/testing/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/testing/web.py b/src/allmydata/testing/web.py index 34f5087e8..8bd21f7d0 100644 --- a/src/allmydata/testing/web.py +++ b/src/allmydata/testing/web.py @@ -105,8 +105,8 @@ def capability_generator(kind): if kind not in KNOWN_CAPABILITIES: raise ValueError( "Unknown capability kind '{} (valid are {})'".format( - kind, - b", ".join(KNOWN_CAPABILITIES), + kind.decode('ascii'), + ", ".join([x.decode('ascii') for x in KNOWN_CAPABILITIES]), ) ) # what we do here is to start with empty hashers for the key and