diff --git a/secator/runners/_base.py b/secator/runners/_base.py index a0cf2ee4..a725807f 100644 --- a/secator/runners/_base.py +++ b/secator/runners/_base.py @@ -436,7 +436,6 @@ def toDict(self): 'name': self.name, 'status': self.status, 'targets': self.inputs, - 'errors': self.errors, 'start_time': self.start_time, 'end_time': self.end_time, 'elapsed': self.elapsed.total_seconds(), @@ -455,7 +454,8 @@ def toDict(self): 'output': self.output, 'progress': self.progress, 'last_updated_db': self.last_updated_db, - 'context': self.context + 'context': self.context, + 'errors': [e.toDict() for e in self.errors], }) return data