mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 07:06:41 +00:00
Clean up error message (for mypy)
This commit is contained in:
parent
bde424c7f9
commit
0056809a55
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user