mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
requirements: Upgrade Python requirements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
a7cdcbb6e3
commit
f29553d809
@@ -291,12 +291,7 @@ def send_email(
|
||||
raise EmailNotDeliveredException
|
||||
|
||||
|
||||
@backoff.on_exception(
|
||||
backoff.expo,
|
||||
OSError,
|
||||
max_tries=MAX_CONNECTION_TRIES,
|
||||
logger=None, # type: ignore[arg-type] # https://github.com/gleb-chipiga/backoff-stubs/pull/2
|
||||
)
|
||||
@backoff.on_exception(backoff.expo, OSError, max_tries=MAX_CONNECTION_TRIES, logger=None)
|
||||
def initialize_connection(connection: Optional[BaseEmailBackend] = None) -> BaseEmailBackend:
|
||||
if not connection:
|
||||
connection = get_connection()
|
||||
|
||||
Reference in New Issue
Block a user