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
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]