Project

General

Profile

Bug #78027

toulouse-maelis: personne sans info de naissance

Added by Sentry Io about 1 year ago. Updated about 1 year ago.

Status:
Fermé
Priority:
Normal
Assignee:
Target version:
-
Start date:
30 May 2023
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

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

AttributeError: 'NoneType' object has no attribute 'get'
(2 additional frame(s) were not displayed)
...
  File "passerelle/contrib/toulouse_maelis/models.py", line 1230, in read_family
    data = self.get_family(family_id, incomeYear=income_year)
  File "passerelle/contrib/toulouse_maelis/models.py", line 552, in get_family
    self.add_text_value_to_family(data)
  File "passerelle/contrib/toulouse_maelis/models.py", line 524, in add_text_value_to_family
    self.add_text_value_to_rl(data[rlg])
  File "passerelle/contrib/toulouse_maelis/models.py", line 517, in add_text_value_to_rl
    self.add_text_value_to_birth(data)
  File "passerelle/contrib/toulouse_maelis/models.py", line 469, in add_text_value_to_birth
    if data['birth'].get('communeCode'):

Error occurred while processing request
{adresse: {idStreet: None, num: 0, numComp: None, street1: None, street2: None, town: None, zipcode: None}, birth: None, civility: 'MR', contact: {isContactMail: False, isContactSms: False, isInvoicePdf: False, mail: None, mobile: '06...', phone: None}, firstname: '...', lastname: '...', maidenName: None, num: '929971', profession: None, quality: 'PERE'}

Related issues

Related to Passerelle - Bug #78186: toulouse-maelis: RL1 avec birth null (TypeError: 'NoneType' object is not subscriptable)Rejeté06 June 2023

Actions

Associated revisions

Revision 93863988 (diff)
Added by Nicolas Roche about 1 year ago

toulouse-maelis: do not crash reading a family with no birth data (#78027)

History

#1

Updated by Frédéric Péters about 1 year ago

  • Project changed from Suivi des traces to Passerelle
#2

Updated by Nicolas Roche about 1 year ago

Pour info :
Trames obtenues depuis la base Maélis de DEV (sur laquelle l'instance de TEST est branchée actuellement).
Les 4 trames concernent la famille de test utilisée lors du sprint du 24,25 à Sigec, et datent de juste après le sprint.
Le RL1 n'avait pas d'information de naissance, mais juste sur ces 4 appels.
Le connexion à la base était bancale juste avant d'après le log précédent :
https://passerelle-parsifal-montoulouse.test.entrouvert.org/manage/toulouse-maelis/test/logs/?log_level=&q=fdca3884963d490397dd211650b1379a&page=45#table-logs
https://passerelle-parsifal-montoulouse.test.entrouvert.org/manage/toulouse-maelis/test/logs/?q=b0031264-c02e-4a45-9468-d70cc7c17bc1

ORA-12518, TNS:listener could not hand off client connection

#3

Updated by Paul Marillonnet about 1 year ago

  • Related to Bug #78186: toulouse-maelis: RL1 avec birth null (TypeError: 'NoneType' object is not subscriptable) added
#4

Updated by Nicolas Roche about 1 year ago

Nouvelle occurrence sur la famille 334363, toujours sur DEV : cf https://redmine.sigec.fr/issues/2758.

#5

Updated by Robot Gitea about 1 year ago

  • Status changed from Nouveau to Solution proposée
  • Assignee set to Nicolas Roche

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

#6

Updated by Nicolas Roche about 1 year ago

  • Subject changed from maelis, personne sans info de naissance (AttributeError: 'NoneType' object has no attribute 'get') to toulouse-maelis: personne sans info de naissance
#7

Updated by Robot Gitea about 1 year ago

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

Frédéric Péters (fpeters) a approuvé une pull request sur Gitea concernant cette demande :

#8

Updated by Robot Gitea about 1 year ago

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

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

#9

Updated by Transition automatique about 1 year ago

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

Updated by Transition automatique 10 months ago

Automatic expiration

Also available in: Atom PDF