mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
scheduled_messages: Extract exception for invalid delivery time.
This commit is contained in:
@@ -766,3 +766,13 @@ class EmailAlreadyInUseError(JsonableError):
|
||||
@override
|
||||
def msg_format() -> str:
|
||||
return _("Email is already in use.")
|
||||
|
||||
|
||||
class DeliveryTimeNotInFutureError(JsonableError):
|
||||
def __init__(self) -> None:
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
@override
|
||||
def msg_format() -> str:
|
||||
return _("Scheduled delivery time must be in the future.")
|
||||
|
||||
Reference in New Issue
Block a user