Don't assume async value
If async was passed in it was being set as true even if the paased value is false. This commit fixes the same.
This commit is contained in:
parent
61b7b1c0f4
commit
1014fc621e
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ def enqueue(method, queue='default', timeout=None, event=None,
|
|||
'''
|
||||
# To handle older implementations
|
||||
if 'async' in kwargs:
|
||||
is_async = True
|
||||
is_async = kwargs.get('async')
|
||||
del kwargs['async']
|
||||
|
||||
if now or frappe.flags.in_migrate:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue