Skip to content

Commit

Permalink
default value for allCommandErrors in state summery
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Jul 31, 2024
1 parent e309caf commit 56d3597
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/opentrons/protocol_engine/state/state_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class StateSummary(BaseModel):
# errors is a list for historical reasons. (This model needs to stay compatible with
# robot-server's database.) It shouldn't have more than 1 element.
errors: List[ErrorOccurrence]
allCommandErrors: List[ErrorOccurrence]
# TODO(tz, 7-31-24): try removing allCommandErrors from this class.
allCommandErrors: List[ErrorOccurrence] = Field(default_factory=list)
labware: List[LoadedLabware]
pipettes: List[LoadedPipette]
modules: List[LoadedModule]
Expand Down

0 comments on commit 56d3597

Please sign in to comment.