Projet

Général

Profil

Bug #78902

api entreprise: pas de prénom pour le mandataire (AttributeError: 'NoneType' object has no attribute 'replace')

Ajouté par Sentry Io il y a 10 mois. Mis à jour il y a 10 mois.

Statut:
Nouveau
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
22 juin 2023
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/112437/

AttributeError: 'NoneType' object has no attribute 'replace'
  File "passerelle/utils/jsonresponse.py", line 128, in api
    resp = f(*args, **kwargs)
  File "passerelle/views.py", line 568, in perform
    result = self.endpoint(request, **params)
  File "passerelle/apps/api_entreprise/models.py", line 463, in match_mandataire_social
    if methods[method](mandataire, first_name, last_name, birthdate):
  File "passerelle/apps/api_entreprise/utils.py", line 46, in levenshtein_match
    normalize(mandataire['prenom'].replace(',', ' ').split(maxsplit=1)[0]), normalize(first_name)

Error occurred while processing request

Historique

#1

Mis à jour par Lauréline Guérin il y a 10 mois

  • Projet changé de Suivi des traces à Passerelle

Formats disponibles : Atom PDF