From 8d7ae8b284f30f26ad3e18f8a5bf9c23f76b59f0 Mon Sep 17 00:00:00 2001 From: crazyiop Date: Sat, 4 Jun 2022 18:58:38 +0200 Subject: [PATCH] add info to exception to help debug layers --- kmk/keys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmk/keys.py b/kmk/keys.py index 9465918..5cad315 100644 --- a/kmk/keys.py +++ b/kmk/keys.py @@ -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]