Files
zulip/zerver/tornado/exceptions.py
Anders Kaseorg 6e4c3e41dc python: Normalize quotes with Black.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-02-12 13:11:19 -08:00

16 lines
412 B
Python

from django.utils.translation import ugettext as _
from zerver.lib.exceptions import ErrorCode, JsonableError
class BadEventQueueIdError(JsonableError):
code = ErrorCode.BAD_EVENT_QUEUE_ID
data_fields = ["queue_id"]
def __init__(self, queue_id: str) -> None:
self.queue_id: str = queue_id
@staticmethod
def msg_format() -> str:
return _("Bad event queue id: {queue_id}")