Skip to content

Commit

Permalink
noqa: E731
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Jul 21, 2023
1 parent 093ff64 commit de7d242
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion celery_haystack/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def enqueue_task(action, instance, **kwargs):
options['countdown'] = settings.CELERY_HAYSTACK_COUNTDOWN

task = get_update_task()
task_func = lambda: task.apply_async((action, identifier), kwargs, **options) # noqa: E731
task_func = lambda: task.apply_async( # noqa: E731
(action, identifier), kwargs, **options
)

if hasattr(transaction, 'on_commit'):
# Django 1.9 on_commit hook
Expand Down

0 comments on commit de7d242

Please sign in to comment.