mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 18:31:16 +00:00
fix check
This commit is contained in:
1 parent
79b4b23a07
commit
07711b8e74
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user