add info to exception to help debug layers

This commit is contained in:
crazyiop 2022-06-04 18:58:38 +02:00 committed by xs5871
parent 561896769c
commit 8d7ae8b284

View File

@ -387,7 +387,7 @@ class KeyAttrDict:
print(f'{key}: {maybe_key}')
if not maybe_key:
raise ValueError('Invalid key')
raise ValueError(f'Invalid key: {key}')
return self.__cache[key]