Skip to content

Commit

Permalink
FIX CS-782
Browse files Browse the repository at this point in the history
Avoid to fail when an unknown contact write us through the form contact on compassion.ch
  • Loading branch information
eicher31 authored and ecino committed Jun 14, 2022
1 parent 3341e3f commit cddd448
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wordpress_connector/models/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ def _parse_front_matter(self, fm, values):
fm["lang"] = match_obj.match_lang(fm["lang"])

partner = match_obj.match_partner_to_infos(fm, options={"skip_create": True})
values["partner_id"] = partner.id
if partner:
values["partner_id"] = partner.id

0 comments on commit cddd448

Please sign in to comment.