Skip to content
Snippets Groups Projects
Commit fc89608e authored by Yoann Schneider's avatar Yoann Schneider :tennis: Committed by Manon Blanco
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent a4c94580
No related branches found
No related tags found
1 merge request!490Explicitely log a warning when the helper doesn't support cache
Pipeline #157079 passed
......@@ -380,7 +380,7 @@ def unsupported_cache(func):
def wrapper(self, *args, **kwargs):
results = func(self, *args, **kwargs)
if not self.is_read_only and not self.use_cache:
if not (self.is_read_only or self.use_cache):
logger.warning(
f"This API helper `{func.__name__}` did not update the cache database"
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment