From d6ab7ea8ffbd7decd223ebc0eb4f105c7a3ec334 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 25 Aug 2020 17:12:38 -0700 Subject: [PATCH] exceptions: Remove dead code msg_format method. --- zerver/lib/exceptions.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zerver/lib/exceptions.py b/zerver/lib/exceptions.py index ca6b04a9a8..397eaf6019 100644 --- a/zerver/lib/exceptions.py +++ b/zerver/lib/exceptions.py @@ -275,6 +275,5 @@ class MissingAuthenticationError(JsonableError): def __init__(self) -> None: pass - @staticmethod - def msg_format() -> str: - return _("User is not authenticated") + # No msg_format is defined since this exception is caught and + # converted into json_unauthorized in Zulip's middleware.