mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +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:
|
def __init__(self) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# No msg_format is defined since this exception is caught and
|
@staticmethod
|
||||||
# converted into json_unauthorized in Zulip's middleware.
|
def msg_format() -> str:
|
||||||
|
return _("User is not authenticated")
|
||||||
|
|||||||
Reference in New Issue
Block a user