solis_apa: profildemandeur field can be not found (#40706)
This commit is contained in:
parent
36efdecf75
commit
7257974b81
|
@ -111,7 +111,7 @@ def get_demandeur(fields, wf):
|
|||
protection_type = protection.get('codeTypeProtection', None)
|
||||
protection_organisme = protection.get('indexOrganismeTutelle', None)
|
||||
|
||||
demandeur_profil = fields['profildemandeur'] or ''
|
||||
demandeur_profil = fields.get('profildemandeur') or ''
|
||||
demandeur_profil = demandeur_profil.strip().upper()
|
||||
|
||||
if 'PERSONNE' in demandeur_profil:
|
||||
|
|
|
@ -158,8 +158,6 @@
|
|||
"prenombeneficiaire": "Chuck",
|
||||
"prenomconjoint": "ally",
|
||||
"prenomdemandeur": null,
|
||||
"profildemandeur": "Je suis le b\u00e9n\u00e9ficiaire",
|
||||
"profildemandeur_raw": "Je suis le b\u00e9n\u00e9ficiaire",
|
||||
"proprietaire": "Oui",
|
||||
"proprietaire_raw": "Oui",
|
||||
"regretraitebeneficiaire": "carsat",
|
||||
|
|
Loading…
Reference in New Issue