mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
Revert "exceptions: Remove dead code msg_format method."
This reverts commit d6ab7ea8ff.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user