Bug #80259
à la suppression d'un test avec un champ carte vide : TypeError: argument of type 'NoneType' is not iterable
Début:
03 août 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/113387/
TypeError: argument of type 'NoneType' is not iterable (13 additional frame(s) were not displayed) ... File "quixote/directory.py", line 82, in _q_traverse obj = self._q_lookup(component) File "wcs/admin/tests.py", line 277, in _q_lookup return TestPage(component, self.objectdef) File "wcs/admin/tests.py", line 126, in __init__ filled = self.testdef.build_formdata(objectdef, include_fields=True) File "wcs/testdef.py", line 133, in build_formdata value = field.from_json_value(self.data['fields'][field.id]) File "wcs/fields.py", line 3858, in from_json_value if 'lat' in value and 'lon' in value:
Révisions associées
Historique
Mis à jour par Robot Gitea il y a 9 mois
- Statut changé de Nouveau à En cours
Valentin Deniaud (vdeniaud) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/543
- Titre : WIP: admin: do not crash on empty map field in tests (#80259)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/543/files
Mis à jour par Robot Gitea il y a 9 mois
- Statut changé de Solution proposée à Solution validée
Frédéric Péters (fpeters) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 9 mois
- Statut changé de Solution validée à Résolu (à déployer)
Valentin Deniaud (vdeniaud) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/543
- Titre : admin: do not crash on empty map field in tests (#80259)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/543/files
Mis à jour par Transition automatique il y a 9 mois
- Statut changé de Résolu (à déployer) à Solution déployée
admin: do not crash on empty map field in tests (#80259)