Fixed broken error handling for long-running tasks

This commit is contained in:
Joel Collins 2019-01-28 17:49:44 +00:00
parent e3a27b024a
commit a11d2145d9
5 changed files with 45 additions and 4 deletions

View file

@ -43,6 +43,8 @@ class TaskListAPI(MicroscopeView):
:>header Content-Type: application/json
"""
print(self.microscope.task.state)
data = self.microscope.task.state
return jsonify(data)