Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjoyo committed Apr 29, 2024
1 parent 9e4e498 commit 1e1a2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpm-ai-core/bpm_ai_core/util/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def wrapper(self, *args, **kwargs):
bound_args = sig.bind_partial(self, *args, **kwargs)
bound_args.apply_defaults()
for param_name, param_value in bound_args.arguments.items():
if param_name not in exclude_params and param_name is not "self":
if param_name not in exclude_params and param_name != "self":
cache_key_components.append(f"{param_name}={param_value}")

if key_func:
Expand Down

0 comments on commit 1e1a2b1

Please sign in to comment.