Skip to content

Commit 569c24d

Browse files
authored
Do not raise exception on unknown fields (#151)
1 parent bf8def0 commit 569c24d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

livekit-api/livekit/api/webhook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ def receive(self, body: str, auth_token: str) -> proto_webhook.WebhookEvent:
1818
if body_hash != claims_hash:
1919
raise Exception("hash mismatch")
2020

21-
return Parse(body, proto_webhook.WebhookEvent())
21+
return Parse(body, proto_webhook.WebhookEvent(), ignore_unknown_fields=True)

0 commit comments

Comments
 (0)