Skip to content

Commit

Permalink
LITE-28450 Fix Message deserialize with empty output
Browse files Browse the repository at this point in the history
  • Loading branch information
bdjilka committed Dec 21, 2023
1 parent 1712cfa commit 3a3cfdb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion connect/eaas/core/proto.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,12 @@ def deserialize(cls, raw):
raw_data = raw.get('data')

if version == 2:
if raw_data and 'output' in raw_data and 'runtime' in raw_data['output']:
if (
raw_data
and 'output' in raw_data
and raw_data['output']
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 3a3cfdb

Please sign in to comment.