mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix check
This commit is contained in:
parent
79b4b23a07
commit
07711b8e74
@ -83,7 +83,7 @@ def offload_task(taskname, *args, force_sync=False, **kwargs):
|
||||
logger.warning(f"WARNING: '{taskname}' not started - Function not found")
|
||||
else:
|
||||
|
||||
if isinstance(taskname, function):
|
||||
if callable(taskname):
|
||||
# function was passed - use that
|
||||
_func = taskname
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user