mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	django.utils.translation.ugettext is a deprecated alias of django.utils.translation.gettext as of Django 3.0, and will be removed in Django 4.0. Signed-off-by: Anders Kaseorg <anders@zulip.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			411 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			411 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from django.utils.translation import gettext 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}")
 |