Skip to content

Commit

Permalink
don't assume process correlations exist on older models
Browse files Browse the repository at this point in the history
  • Loading branch information
essweine committed Apr 25, 2024
1 parent ca2a50c commit 2a2cbb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SpiffWorkflow/spiff/serializer/event_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def to_dict(self, event_definition):

def from_dict(self, dct):
dct['correlation_properties'] = self.correlation_properties_from_dict(dct['correlation_properties'])
dct['process_correlations'] = self.correlation_properties_from_dict(dct['process_correlations'])
dct['process_correlations'] = self.correlation_properties_from_dict(dct.get('process_correlations', []))
event_definition = super().from_dict(dct)
return event_definition

Expand Down

0 comments on commit 2a2cbb8

Please sign in to comment.