Projet

Général

Profil

Bug #52196

KeyError

Ajouté par Sentry Io il y a environ 3 ans. Mis à jour il y a presque 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
18 mars 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/30301/

FileNotFoundError: [Errno 2] No such file or directory: b'/var/lib/wcs/demarches-sguiet.test.entrouvert.org/carddefs/20'
  File "wcs/qommon/storage.py", line 505, in get_filename
    fd = open(force_bytes(filename, 'utf-8'), 'rb')

KeyError: 
(21 additional frame(s) were not displayed)
...
  File "wcs/wf/create_formdata.py", line 171, in get_substitution_variables
    if part.formdata:
  File "wcs/wf/create_formdata.py", line 155, in formdata
    self._formdata = self.formdef.data_class().get(self.formdata_id, ignore_errors=True)
  File "wcs/wf/create_formdata.py", line 149, in formdef
    self._formdef = self.formdef_class.get(self.formdef_id)
  File "wcs/qommon/storage.py", line 444, in get
    filename, ignore_errors=ignore_errors, ignore_migration=ignore_migration, **kwargs
  File "wcs/qommon/storage.py", line 510, in get_filename
    raise KeyError()

Demandes liées

Duplique w.c.s. - Bug #63859: KeyError sur une fiche avec des fiches liés dont le modèle a été effacéFermé12 avril 2022

Actions

Historique

#1

Mis à jour par Lauréline Guérin il y a environ 3 ans

  • Projet changé de Suivi des traces à w.c.s.
#2

Mis à jour par Frédéric Péters il y a presque 2 ans

  • Statut changé de Nouveau à Fermé

Répété en #63859.

#3

Mis à jour par Frédéric Péters il y a presque 2 ans

  • Duplique Bug #63859: KeyError sur une fiche avec des fiches liés dont le modèle a été effacé ajouté

Formats disponibles : Atom PDF