fix: str representation for validation error

Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
This commit is contained in:
Tudor Plugaru 2024-11-14 12:22:38 +02:00
parent 21493e180f
commit 68337f9adc
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class CloudEventValidationError(BaseCloudEventException):
def __str__(self) -> str:
error_messages = [
f"{key}: {', '.join(str(value))}" for key, value in self.errors.items()
f"{key}: {', '.join(str(e) for e in value)}" for key, value in self.errors.items()
]
return f"{super().__str__()}: {', '.join(error_messages)}"