Resolve invalid keys to KC.NO instead of ValueError

This commit is contained in:
xs5871
2023-03-06 20:31:16 +00:00
committed by xs5871
parent 2ccad46e26
commit fd700cff44
4 changed files with 14 additions and 17 deletions

View File

@@ -475,7 +475,9 @@ class KeyAttrDict:
break
if not maybe_key:
raise ValueError(f'Invalid key: {name}')
if debug.enabled:
debug(f'Invalid key: {name}')
return KC.NO
if debug.enabled:
debug(f'{name}: {maybe_key}')