Skip to content
Snippets Groups Projects
Commit 2cac0031 authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Erreur si la reponse portail n'a pas le mail

parent e9ad417f
Branches
No related tags found
No related merge requests found
......@@ -854,9 +854,13 @@ def formsemestre_import_etud_admission(
apo_emailperso = etud.get("mailperso", "")
if info["emailperso"] and not apo_emailperso:
apo_emailperso = info["emailperso"]
if import_email:
if not "mail" in etud:
raise ScoValueError(
"la réponse portail n'a pas le champs requis 'mail'"
)
if (
import_email
and info["email"] != etud["mail"]
info["email"] != etud["mail"]
or info["emailperso"] != apo_emailperso
):
sco_etud.adresse_edit(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment