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:
Himanshu Mishra 2019-01-14 12:54:19 +05:30 committed by GitHub
parent 61b7b1c0f4
commit 1014fc621e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: