mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-03 21:27:36 +03:00
imap: mypy fix
This commit is contained in:
parent
e80bf58901
commit
3df5d28432
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ class Auth(auth.BaseAuth):
|
|||
|
||||
def _login(self, login, password) -> str:
|
||||
try:
|
||||
connection: imaplib.IMAP4 | imaplib.IMAP4_SSL
|
||||
if self._security == "tls":
|
||||
connection = imaplib.IMAP4_SSL(
|
||||
host=self._host, port=self._port,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue