From: Roland Häder Date: Sun, 4 Jun 2023 19:08:32 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aeb1ed3c1502c94eb425cf13abb24785c0e86949;p=fba.git Continued: - invocation, not calling ;-) --- 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]