Skip to content

Commit

Permalink
Do not raise exception on unknown fields (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao authored Jan 23, 2024
1 parent bf8def0 commit 569c24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion livekit-api/livekit/api/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ def receive(self, body: str, auth_token: str) -> proto_webhook.WebhookEvent:
if body_hash != claims_hash:
raise Exception("hash mismatch")

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

0 comments on commit 569c24d

Please sign in to comment.