Skip to content

Commit

Permalink
Fix message deserialize for system events
Browse files Browse the repository at this point in the history
  • Loading branch information
bdjilka committed Dec 20, 2023
1 parent 82a5b9e commit 1712cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connect/eaas/core/proto.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def deserialize(cls, raw):
raw_data = raw.get('data')

if version == 2:
if 'output' in raw_data and 'runtime' in raw_data['output']:
if raw_data and 'output' in raw_data and 'runtime' in raw_data['output']:
raw['data']['output']['runtime'] = raw_data['output']['runtime'] or 0.0
return cls(**raw)

Expand Down

0 comments on commit 1712cfa

Please sign in to comment.