diff --git a/openflexure_microscope/api/v2/blueprints/tasks.py b/openflexure_microscope/api/v2/blueprints/tasks.py index 123ececa..cf841bb2 100644 --- a/openflexure_microscope/api/v2/blueprints/tasks.py +++ b/openflexure_microscope/api/v2/blueprints/tasks.py @@ -138,7 +138,7 @@ class TaskAPI(MethodView): """ try: - task = tasks[task_id] + task = tasks.tasks()[task_id] except KeyError: return abort(404) # 404 Not Found