mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 04:58:47 +03:00
test: remove all cache-related logic in the FFI pytest plugin
This commit is contained in:
@@ -49,7 +49,10 @@ class DirectImap:
|
||||
self.conn.login(user, pw)
|
||||
self.select_folder("INBOX")
|
||||
return
|
||||
except (OSError, ssl.SSLError, imaplib.IMAP4.error):
|
||||
except (OSError, imaplib.IMAP4.abort) as e:
|
||||
# OSError covers ssl.SSLError, "abort" is a dropped connection;
|
||||
# permanent IMAP errors (login rejected etc) must not be retried.
|
||||
print(f"direct_imap connect to {host} failed ({e!r}), retrying")
|
||||
time.sleep(1)
|
||||
|
||||
def shutdown(self):
|
||||
|
||||
Reference in New Issue
Block a user