diff --git a/connect/eaas/core/proto.py b/connect/eaas/core/proto.py index be66163..6f1a717 100644 --- a/connect/eaas/core/proto.py +++ b/connect/eaas/core/proto.py @@ -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)