summaryrefslogtreecommitdiff
path: root/src/jwebmail/read_mails.py
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2024-12-12 16:41:13 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2024-12-12 16:41:13 +0100
commit0237cc4bac0dafa9a3f3013b3f48e4f2941963bd (patch)
tree48b2fa89842b73de41bac93e24a0e3aef2bb866c /src/jwebmail/read_mails.py
parent55688b969a645fbc6d94c76f51da3be976c1d098 (diff)
fixes and improvements for error handling
Diffstat (limited to 'src/jwebmail/read_mails.py')
-rw-r--r--src/jwebmail/read_mails.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jwebmail/read_mails.py b/src/jwebmail/read_mails.py
index 8e1a23d..f88ce46 100644
--- a/src/jwebmail/read_mails.py
+++ b/src/jwebmail/read_mails.py
@@ -173,8 +173,8 @@ def _build_qma(domain):
def login(username, password):
+ _, domain = username.split("@")
try:
- _, domain = username.split("@")
_build_qma(domain).open(username, password)
except QMAuthError as err:
if err.rc == 1: