Skip to content

Commit

Permalink
Merge pull request #107 from cloudblue/lite-28450-fix-message-deseria…
Browse files Browse the repository at this point in the history
…lize

LITE-28450 Fix Message deserialize with empty output
  • Loading branch information
bdjilka authored Dec 21, 2023
2 parents 802d3e4 + 3a3cfdb commit d31e062
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 d31e062

Please sign in to comment.