docs: Remove HostnameAlreadyInUseBouncerError.docs_url.

Now that we introduced an URL for serving permalinks redirecting to
docs in #33444, the docs_url mechanism is no longer needed, as we can
have a URL that's safe to hard-code in register_server.py.

The HostnameAlreadyInUseBouncerError.docs_url has been merged in main
briefly enough, that this should be safe to remove.
This commit is contained in:
Mateusz Mandera
2025-02-13 22:18:17 +08:00
committed by Tim Abbott
parent 0a45a289f2
commit a8fbf6d5d5
5 changed files with 10 additions and 6 deletions

View File

@@ -1534,9 +1534,8 @@ class PushNotificationsDisallowedByBouncerError(Exception):
class HostnameAlreadyInUseBouncerError(JsonableError):
code = ErrorCode.HOSTNAME_ALREADY_IN_USE_BOUNCER_ERROR
docs_url = "https://zulip.readthedocs.io/en/latest/production/mobile-push-notifications.html#moving-your-registration-to-a-new-server"
data_fields = ["hostname", "docs_url"]
data_fields = ["hostname"]
def __init__(self, hostname: str) -> None:
self.hostname: str = hostname