We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff9a5f3 + f11587d commit 7e7976bCopy full SHA for 7e7976b
1 file changed
watch/watch.py
@@ -88,6 +88,8 @@ def unmarshal_event(self, data, return_type):
88
js = json.loads(data)
89
except ValueError:
90
return data
91
+ if not (isinstance(js, dict) and 'object' in js):
92
+ return data
93
js['raw_object'] = js['object']
94
if return_type:
95
obj = SimpleNamespace(data=json.dumps(js['raw_object']))
0 commit comments