Skip to content

Commit 44b1f5d

Browse files
fix: AttributeError: 'Configuracion' object has no attribute 'email'
Signed-off-by: William Moreno <williamjmorenor@gmail.com>
1 parent 27567c5 commit 44b1f5d

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

now_lms/__init__.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -434,24 +434,6 @@ def init_app(with_examples=False):
434434
log.trace("Acceso a base de datos verificado.")
435435
config = Configuracion.query.first()
436436

437-
if (
438-
config.email
439-
and config.MAIL_HOST is not None
440-
and config.MAIL_PORT is not None
441-
and config.MAIL_USERNAME is not None
442-
and config.MAIL_PASSWORD is not None
443-
):
444-
log.trace("Cargando configuración de correo electronico.")
445-
lms_app.config.update(
446-
{
447-
"MAIL_HOST": config.MAIL_HOST,
448-
"MAIL_PORT": config.MAIL_PORT,
449-
"MAIL_USERNAME": config.MAIL_USERNAME,
450-
"MAIL_PASSWORD": descifrar_secreto(config.MAIL_PASSWORD),
451-
"MAIL_USE_TLS": config.MAIL_USE_TLS,
452-
"MAIL_USE_SSL": config.MAIL_USE_SSL,
453-
}
454-
)
455437
if DESARROLLO:
456438
lms_app.config.update({"MAIL_BACKEND": "dummy"})
457439

0 commit comments

Comments
 (0)