Fix code review issues: remove duplicate dependency, improve error handling, fix hardcoded credentials, improve encryption salt
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -375,8 +375,8 @@ class MailProcessor:
|
||||
finally:
|
||||
try:
|
||||
server.quit()
|
||||
except:
|
||||
pass
|
||||
except Exception as e:
|
||||
logger.warning(f"Error closing SMTP connection: {e}")
|
||||
|
||||
return await loop.run_in_executor(None, send_email)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user