mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
Previous cleanups (mostly the removals of Python __future__ imports) were done in a way that introduced leading newlines. Delete leading newlines from all files, except static/assets/zulip-emoji/NOTICE, which is a verbatim copy of the Apache 2.0 license. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
15 lines
419 B
Python
15 lines
419 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 = queue_id # type: str
|
|
|
|
@staticmethod
|
|
def msg_format() -> str:
|
|
return _("Bad event queue id: {queue_id}")
|