Revert "exceptions: Remove dead code msg_format method."

This reverts commit d6ab7ea8ff.
This commit is contained in:
Tim Abbott
2020-08-25 17:41:51 -07:00
parent fd3a43b51e
commit 5dceee5bd8

View File

@@ -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")