Project

General

Profile

Bug #81673

caluire-axel: ne pas crasher si un enfant n'a pas de prénom

Added by Sentry Io 2 months ago. Updated about 2 months ago.

Status:
Solution déployée
Priority:
Normal
Target version:
-
Start date:
27 September 2023
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

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

AttributeError: 'NoneType' object has no attribute 'strip'
  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/contrib/caluire_axel/models.py", line 211, in children_info
    family_data = self.get_family_data(link.family_id)
  File "passerelle/contrib/caluire_axel/models.py", line 175, in get_family_data
    child['text'] = '{} {}'.format(child['PRENOM'].strip(), child['NOM'].strip()).strip()

Error occurred while processing request

Files

nouveau-né.jpeg (104 KB) nouveau-né.jpeg Serghei Mihai, 28 September 2023 10:36 AM

Associated revisions

Revision 117743e0 (diff)
Added by Lauréline Guérin 2 months ago

caluire-axel: fix family_date with a None first name (#81673)

History

#1

Updated by Nicolas Roche 2 months ago

  • Project changed from Suivi des traces to Passerelle
#2

Updated by Robot Gitea 2 months ago

  • Status changed from Nouveau to Solution proposée
  • Assignee set to Lauréline Guérin

Lauréline Guérin (lguerin) a ouvert une pull request sur Gitea concernant cette demande :

#3

Updated by Robot Gitea 2 months ago

  • Status changed from Solution proposée to Solution validée

Nicolas Roche (nroche) a approuvé une pull request sur Gitea concernant cette demande :

#4

Updated by Serghei Mihai 2 months ago

Le titre de ce ticket m'a rappelé l'affiche de la maternité.

#5

Updated by Robot Gitea 2 months ago

  • Status changed from Solution validée to Résolu (à déployer)

Lauréline Guérin (lguerin) a mergé une pull request sur Gitea concernant cette demande :

#6

Updated by Transition automatique about 2 months ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF