Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
exceptions: Guard validation error conversion with message_dict.
Zixuan James Li3104a7ea943e
diff --git a/zerver/lib/exceptions.py b/zerver/lib/exceptions.pyindex 1a933ab4643..6b891440ec7 100644--- a/zerver/lib/exceptions.py+++ b/zerver/lib/exceptions.py@@ -471,4 +471,4 @@ class ValidationFailureError(JsonableError):def __init__(self, error: ValidationError) -> None:super().__init__(error.messages[0])- self.errors = dict(error)+ self.errors = error.message_dict