add info to exception to help debug layers
This commit is contained in:
@@ -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]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user