From 7d180987ac9dc156876a451fd263417a6babbf8f Mon Sep 17 00:00:00 2001 From: Tudor Plugaru Date: Thu, 14 Nov 2024 21:06:51 +0200 Subject: [PATCH] remove cast of defaultdict to dict Signed-off-by: Tudor Plugaru --- src/cloudevents/core/v1/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cloudevents/core/v1/event.py b/src/cloudevents/core/v1/event.py index b56ef41..043670b 100644 --- a/src/cloudevents/core/v1/event.py +++ b/src/cloudevents/core/v1/event.py @@ -70,7 +70,7 @@ class CloudEvent: errors.update(CloudEvent._validate_optional_attributes(attributes=attributes)) errors.update(CloudEvent._validate_extension_attributes(attributes=attributes)) if errors: - raise CloudEventValidationError(dict(errors)) + raise CloudEventValidationError(errors=errors) @staticmethod def _validate_required_attributes(