i think i fixed things

This commit is contained in:
2023-01-14 14:13:10 +01:00
parent 8801ebaf58
commit 166c96e66d
8 changed files with 255 additions and 22 deletions
+1 -2
View File
@@ -76,8 +76,7 @@ class Registry:
See Registry class docstring for example.
"""
if cls_name.lower() not in self._lookup:
raise KeyError('"{}" is not a name of a registered class'.format(cls_name))
if cls_name.lower() not in self._lookup: raise KeyError('"{}" is not a name of a registered class'.format(cls_name))
return self._lookup[cls_name.lower()]
def has(self, cls_name):