Skip to content

Commit

Permalink
fix: runner toDict() errors (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocervell authored Nov 8, 2024
1 parent 4a22a70 commit b43c866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions secator/runners/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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

Expand Down

0 comments on commit b43c866

Please sign in to comment.