Closed thorwhalen closed 3 years ago
Added
def __getitem__(self, k):
try:
return super().__getitem__(k)
except KeyError:
raise KeyError(f"The '{k}' key wasn't found. "
f"What this probably is, is that you need "
f"a file named '{k}' in your {self.dirpath} folder. Do that and try again.")
to MyConfigs
class
Have
myconfigs
key error explicitly say "hey, you need to have a file named X in your Y directory".