add info to exception to help debug layers
This commit is contained in:
parent
561896769c
commit
8d7ae8b284
@ -387,7 +387,7 @@ class KeyAttrDict:
|
|||||||
print(f'{key}: {maybe_key}')
|
print(f'{key}: {maybe_key}')
|
||||||
|
|
||||||
if not maybe_key:
|
if not maybe_key:
|
||||||
raise ValueError('Invalid key')
|
raise ValueError(f'Invalid key: {key}')
|
||||||
|
|
||||||
return self.__cache[key]
|
return self.__cache[key]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user