Do not list the name twice.

This commit is contained in:
Brad Warren 2020-01-16 11:35:05 -08:00
parent 6e07e8b5c0
commit d0b4740e52

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: