The dictionary is unicode, not bytes.

This commit is contained in:
Itamar Turner-Trauring 2020-11-03 10:41:02 -05:00
parent 60992174ff
commit 3edc1cb29e

View File

@ -27,6 +27,8 @@ class StoragePlugins(Resource, object):
:see: ``twisted.web.iweb.IResource.getChild``
"""
# Technically client could be using some other encoding?
segment = segment.decode("utf-8")
resources = self._client.get_client_storage_plugin_web_resources()
try:
result = resources[segment]