Projet

Général

Profil

Development #43126

/datetimes/, AttributeError: 'NoneType' object has no attribute 'replace'

Ajouté par Sentry Io il y a presque 4 ans. Mis à jour il y a presque 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
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

Révision fc2108bb (diff)
Ajouté par Benjamin Dauvergne il y a presque 4 ans

tests: add test with exception completely covering opening hours of a desk (#43126)

Révision 7973059d (diff)
Ajouté par Benjamin Dauvergne il y a presque 4 ans

api: handle empty opening hours after removing exceptions (#43126)

Historique

#1

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
#3

Mis à jour par Nicolas Roche il y a presque 4 ans

  • Statut changé de Solution proposée à Solution validée
#4

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)
#5

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

Formats disponibles : Atom PDF