Bug #51251
AttributeError: 'NoneType' object has no attribute 'description'
Début:
18 février 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/29828/
AttributeError: 'NoneType' object has no attribute 'description' File "django/core/handlers/exception.py", line 41, in inner response = get_response(request) File "django/core/handlers/base.py", line 187, in _get_response response = self.process_exception_by_middleware(e, request) File "django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "combo/apps/search/models.py", line 227, in ajax_results_view 'data': service['function'](request, query, pages=pages, with_description=with_description) File "combo/apps/search/utils.py", line 146, in search_site 'description': hit.page.description if with_description is True else '',
Fichiers
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a environ 3 ans
- Fichier 0001-search-fix-view-when-indexed-cell-has-no-page-51251.patch 0001-search-fix-view-when-indexed-cell-has-no-page-51251.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a environ 3 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Lauréline Guérin il y a environ 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 69d97b1c08e898e842aaf5568d509d32e2be9435 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Thu Feb 18 14:14:51 2021 +0100 search: fix view when indexed cell has no page (#51251)
Mis à jour par Frédéric Péters il y a environ 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
search: fix view when indexed cell has no page (#51251)