From aeb1ed3c1502c94eb425cf13abb24785c0e86949 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 4 Jun 2023 21:08:32 +0200 Subject: [PATCH] Continued: - invocation, not calling ;-) --- fba/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fba/cache.py b/fba/cache.py index 25adde2..790d88f 100644 --- a/fba/cache.py +++ b/fba/cache.py @@ -47,7 +47,7 @@ def set_sub_key(key: str, sub: str, value: any): raise ValueError("Parameter sub[]='{type(sub)}' is not 'str'") elif not key_exists(key): print(f"WARNING: Bad method call, key='{key}' is not initialized yet.") - raise Exception(f"Cache for key='{key}' is not initialized, but function called") + raise Exception(f"Cache for key='{key}' is not initialized, but function invoked") _cache[key][sub] = value @@ -58,6 +58,6 @@ def sub_key_exists(key: str, sub: str) -> bool: raise ValueError("Parameter sub[]='{type(sub)}' is not 'str'") elif not key_exists(key): print(f"WARNING: Bad method call, key='{key}' is not initialized yet.") - raise Exception(f"Cache for key='{key}' is not initialized, but function called") + raise Exception(f"Cache for key='{key}' is not initialized, but function invoked") return sub in _cache[key] -- 2.39.5