From 1712cfa226c0be78ac60e8b8d1b64e6523a66846 Mon Sep 17 00:00:00 2001 From: Aleksandra Ovchinnikova Date: Wed, 20 Dec 2023 13:58:36 -0800 Subject: [PATCH] Fix message deserialize for system events --- connect/eaas/core/proto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect/eaas/core/proto.py b/connect/eaas/core/proto.py index 20b652e..be66163 100644 --- a/connect/eaas/core/proto.py +++ b/connect/eaas/core/proto.py @@ -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)