Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

Revert "exceptions: Remove dead code msg_format method."

Tim Abbott5dceee5bd867
diff --git a/zerver/lib/exceptions.py b/zerver/lib/exceptions.py
index 397eaf60195..ca6b04a9a8b 100644
--- a/zerver/lib/exceptions.py
+++ b/zerver/lib/exceptions.py
@@ -275,5 +275,6 @@ class MissingAuthenticationError(JsonableError):
def __init__(self) -> None:
pass
- # No msg_format is defined since this exception is caught and
- # converted into json_unauthorized in Zulip's middleware.
+ @staticmethod
+ def msg_format() -> str:
+ return _("User is not authenticated")