Do not list the name twice. (#7689)

This commit is contained in:
Brad Warren 2020-01-16 13:44:08 -08:00 committed by Adrien Ferrand
parent 6e07e8b5c0
commit 91ce42ce9c

View file

@ -245,7 +245,7 @@ class Directory(jose.JSONDeSerializable):
try:
return self[name.replace('_', '-')]
except KeyError as error:
raise AttributeError(str(error) + ': ' + name)
raise AttributeError(str(error))
def __getitem__(self, name):
try: