mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
modify by comment
This commit is contained in:
parent
4a991b4cd4
commit
3369c9e536
3 changed files with 14 additions and 15 deletions
|
|
@ -51,8 +51,8 @@ def email_login_imap(email_address, email_password):
|
|||
# Attempt to log in to the email account
|
||||
try:
|
||||
mailbox = MailBox(imap_server).login(email_address, email_password)
|
||||
print("Login successful")
|
||||
logger.info("Login successful")
|
||||
return mailbox
|
||||
except Exception as e:
|
||||
print(f"Login failed: {e}")
|
||||
logger.error(f"Login failed: {e}")
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue