Fixed task termination

This commit is contained in:
Joel Collins 2019-12-13 15:03:59 +00:00
parent 779c112ecc
commit 1224daac13

View file

@ -138,7 +138,7 @@ class TaskAPI(MethodView):
""" """
try: try:
task = tasks_representation()[task_id] task = tasks[task_id]
except KeyError: except KeyError:
return abort(404) # 404 Not Found return abort(404) # 404 Not Found