Development #43126
/datetimes/, AttributeError: 'NoneType' object has no attribute 'replace'
Début:
20 mai 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/2354/
AttributeError: 'NoneType' object has no attribute 'replace' (6 additional frame(s) were not displayed) ... File "rest_framework/views.py", line 463, in dispatch response = handler(request, *args, **kwargs) File "chrono/api/views.py", line 456, in get for slot in generator_of_unique_slots File "chrono/api/views.py", line 449, in <listcomp> { File "chrono/api/views.py", line 416, in unique_slots all_slots = list(get_all_slots(agenda, meeting_type, unique=True)) File "chrono/api/views.py", line 125, in get_all_slots min_datetime = base.min().replace(hour=0, minute=0, second=0, microsecond=0)
Fichiers
Révisions associées
api: handle empty opening hours after removing exceptions (#43126)
Historique
Mis à jour par Frédéric Péters il y a presque 4 ans
- Projet changé de Suivi des traces à Chrono
- Sujet changé de AttributeError: 'NoneType' object has no attribute 'replace' à /datetimes/, AttributeError: 'NoneType' object has no attribute 'replace'
- Assigné à mis à Benjamin Dauvergne
Mis à jour par Benjamin Dauvergne il y a presque 4 ans
- Fichier 0001-tests-add-test-with-exception-completely-covering-op.patch 0001-tests-add-test-with-exception-completely-covering-op.patch ajouté
- Fichier 0002-api-handle-empty-opening-hours-after-removing-except.patch 0002-api-handle-empty-opening-hours-after-removing-except.patch ajouté
- Tracker changé de Bug à Development
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Nicolas Roche il y a presque 4 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Benjamin Dauvergne il y a presque 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 7973059dcbe1f361196e04eb55ef2609fbc6d0e2 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Wed May 20 09:19:41 2020 +0200 api: handle empty opening hours after removing exceptions (#43126) commit fc2108bbb5b1e592415427739c952f1fdc7a6a67 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Wed May 20 09:19:04 2020 +0200 tests: add test with exception completely covering opening hours of a desk (#43126)
Mis à jour par Frédéric Péters il y a presque 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
tests: add test with exception completely covering opening hours of a desk (#43126)