Bug #74185
toulouse-maelis, read_activity_list, 'NoneType' object is not subscriptable
Début:
04 février 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
File "/usr/lib/python3/dist-packages/passerelle/contrib/toulouse_maelis/models.py" in read_activity_list 2212. if activity['activityPortail']['activityType']['natureSpec']['code'] not in ('P', 'L', 'S'): Exception Type: TypeError at /toulouse-maelis/test/read-activity-list Exception Value: 'NoneType' object is not subscriptable
activity à ce moment : (activityType à None),
{'activityPortail': {'activityBusList': [], 'activityPeriodList': [], 'activityType': None, 'birthControl': 'N', ...
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ un an
- Sujet changé de toulouse-maeles, read_activity_list, 'NoneType' object is not subscriptable à toulouse-maelis, read_activity_list, 'NoneType' object is not subscriptable
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Nouveau à Solution proposée
Nicolas Roche (nroche) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/passerelle/pulls/85
- Titre : toulouse-maelis: do not crash on activity with no type (#74185)
- Modifications : https://gitea.entrouvert.org/entrouvert/passerelle/pulls/85/files
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution proposée à Solution validée
Serghei Mihai (smihai) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution validée à Résolu (à déployer)
Nicolas Roche (nroche) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/passerelle/pulls/85
- Titre : toulouse-maelis: do not crash on activity with no type (#74185)
- Modifications : https://gitea.entrouvert.org/entrouvert/passerelle/pulls/85/files
Mis à jour par Transition automatique il y a environ un an
- Statut changé de Résolu (à déployer) à Solution déployée
toulouse-maelis: do not crash on activity with no type (#74185)