Skip to content

Commit

Permalink
Fix co bailleur privé mail en SIRET dans le SIAP (#1479)
Browse files Browse the repository at this point in the history
  • Loading branch information
syldb authored Jun 25, 2024
1 parent 9e37bc9 commit 4024846
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions siap/siap_client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def get_or_create_bailleur(bailleur_from_siap: dict):
]:
if "email" in bailleur_from_siap and bailleur_from_siap["email"]:
bailleur_siren = bailleur_from_siap["email"]
elif bailleur_from_siap.get("siret"):
bailleur_siren = bailleur_from_siap["siret"]
else:
raise NotHandledBailleurPriveSIAPException(
"The « Bailleurs privés » type of bailleur is not handled yet"
Expand Down
2 changes: 1 addition & 1 deletion templates/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="fr-col-lg-11 fr-col-offset-lg-1 fr-mb-2w">

{% if exception_type == 'NotHandledBailleurPriveSIAPException' %}
<h2 class="fr-mt-3w fr-mt-md-5w fr-mb-5w">Cet fonctionnalité n'est pas encore prise en charge par la plateforme SIAP-APiLos</h2>
<h2 class="fr-mt-3w fr-mt-md-5w fr-mb-5w">Cette fonctionnalité n'est pas encore prise en charge par la plateforme SIAP-APiLos</h2>
<p class="fr-mb-3w">
Le conventionnement des opérations portées par des bailleurs privés (personnes physiques sans SIREN) n'est pas pris en charge actuellement par la plateforme SIAP-APiLos.<br>
Nos équipes techniques travaillent actuellement à la mise en place de cette fonctionnalité.
Expand Down

0 comments on commit 4024846

Please sign in to comment.