solis_apa: profildemandeur field can be not found (#40706)

This commit is contained in:
Lauréline Guérin 2020-03-17 15:10:59 +01:00
parent 36efdecf75
commit 7257974b81
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
2 changed files with 1 additions and 3 deletions

View File

@ -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:

View File

@ -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",