Skip to content

Commit 68337f9

Browse files
committed
fix: str representation for validation error
Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
1 parent 21493e1 commit 68337f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cloudevents/core/v1/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, errors: dict[str, list[BaseCloudEventException]]) -> None:
3232

3333
def __str__(self) -> str:
3434
error_messages = [
35-
f"{key}: {', '.join(str(value))}" for key, value in self.errors.items()
35+
f"{key}: {', '.join(str(e) for e in value)}" for key, value in self.errors.items()
3636
]
3737
return f"{super().__str__()}: {', '.join(error_messages)}"
3838

0 commit comments

Comments
 (0)