Projet

Général

Profil

Development #32046

ne pas crasher sur un type de cellule inconnu présent dans le cache

Ajouté par Frédéric Péters il y a environ 5 ans. Mis à jour il y a environ 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
08 avril 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

En passant de branche en branche, sur une de mes pages de test pour #20771 :

  File "/home/fred/src/eo/combo/combo/public/templatetags/combo.py", line 65, in placeholder
    page_cells = context['page'].get_cells() if 'page' in context else []
  File "/home/fred/src/eo/combo/combo/data/models.py", line 340, in get_cells
    return CellBase.get_cells(page=self)
  File "/home/fred/src/eo/combo/combo/data/models.py", line 587, in get_cells
    cell_classes = [get_cell_class(x) for x in cell_types]
  File "/home/fred/src/eo/combo/combo/data/library.py", line 32, in get_cell_class
    return self.classes_by_content_str[content_type_str]
KeyError: u'dataviz_chartngcell'

Fichiers

Révisions associées

Révision 2bd06c34 (diff)
Ajouté par Frédéric Péters il y a environ 5 ans

misc: don't crash when cell cache refers to unknown cell types (#32046)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 5 ans

#2

Mis à jour par Thomas Noël il y a environ 5 ans

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

Mis à jour par Frédéric Péters il y a environ 5 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 2bd06c348bee608123b9026c092c9c09f61dc773
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sun Apr 7 19:45:09 2019 +0200

    misc: don't crash when cell cache refers to unknown cell types (#32046)
#4

Mis à jour par Frédéric Péters il y a environ 5 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF