From 1b9e9801444527ef833a8286acf7a284c30db690 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 13 Mar 2022 20:44:55 +0100 Subject: [PATCH] evals error out on gh action --- InvenTree/InvenTree/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/InvenTree/tasks.py b/InvenTree/InvenTree/tasks.py index 578a303566..d089ae7157 100644 --- a/InvenTree/InvenTree/tasks.py +++ b/InvenTree/InvenTree/tasks.py @@ -94,13 +94,13 @@ def offload_task(taskname, *args, force_sync=False, **kwargs): # Retrieve function try: _func = getattr(_mod, func) - except AttributeError: + except AttributeError: # pragma: no cover # getattr does not work for local import _func = None try: if not _func: - _func = eval(func) + _func = eval(func) # pragma: no cover except NameError: logger.warning(f"WARNING: '{taskname}' not started - No function named '{func}'") return