Projet

Général

Profil

Bug #49599

TypeError: 'NoneType' object is not subscriptable

Ajouté par Sentry Io il y a plus de 3 ans. Mis à jour il y a 5 mois.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
18 décembre 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

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

TypeError: 'NoneType' object is not subscriptable
(16 additional frame(s) were not displayed)
...
  File "wcs/workflows.py", line 72, in perform_items
    url = item.perform(formdata) or url
  File "wcs/wf/wscall.py", line 337, in perform
    formdata.store()
  File "wcs/sql.py", line 432, in f
    return func(*args, **kwargs)
  File "wcs/qommon/substitution.py", line 26, in f
    return func(*args, **kwargs)
  File "wcs/sql.py", line 1716, in store
    evo._sql_id = cur.fetchone()[0]

Demandes liées

Lié à w.c.s. - Bug #70377: trace sur workflow qui fait une création de demande/fiche et le workflow de la demande/fiche qui supprime celle-ciFermé17 octobre 2022

Actions

Historique

#1

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

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

Mis à jour par Lauréline Guérin il y a plus d'un an

nouvelle occurrence https://sentry.entrouvert.org/entrouvert/publik/issues/62620/

TypeError: 'NoneType' object is not subscriptable
  File "wcs/compat.py", line 56, in get
    context = self.get_context_data(**kwargs)
  File "wcs/views.py", line 39, in get_context_data
    body = get_publisher().try_publish(get_request())
  File "quixote/publish.py", line 241, in try_publish
    output = self.root_directory._q_traverse(components)
  File "modules/root.py", line 293, in _q_traverse
    output = Directory._q_traverse(self, path)
  File "quixote/directory.py", line 88, in _q_traverse
    return obj._q_traverse(path)
  File "wcs/backoffice/root.py", line 83, in _q_traverse
    return super()._q_traverse(path)
  File "quixote/directory.py", line 116, in _q_traverse
    return super(AccessControlled, self)._q_traverse(path)
  File "quixote/directory.py", line 88, in _q_traverse
    return obj._q_traverse(path)
  File "wcs/backoffice/management.py", line 162, in _q_traverse
    return super()._q_traverse(path)
  File "quixote/directory.py", line 88, in _q_traverse
    return obj._q_traverse(path)
  File "quixote/directory.py", line 88, in _q_traverse
    return obj._q_traverse(path)
  File "wcs/forms/common.py", line 912, in _q_traverse
    return super()._q_traverse(path)
  File "quixote/directory.py", line 92, in _q_traverse
    return obj()
  File "wcs/backoffice/management.py", line 2993, in _q_index
    return self.status()
  File "wcs/forms/common.py", line 593, in status
    response = self.check_submitted_form(form)
  File "wcs/forms/common.py", line 391, in check_submitted_form
    url = self.submit(form)
  File "wcs/forms/common.py", line 682, in submit
    next_url = self.filled.handle_workflow_form(user, form)
  File "wcs/formdata.py", line 740, in handle_workflow_form
    return wf_status.handle_form(form, self, user)
  File "wcs/workflows.py", line 1934, in handle_form
    url = filled.perform_workflow(event='workflow-form-submit')
  File "wcs/formdata.py", line 651, in perform_workflow
    url = perform_items(wf_status.items, self, event=event)
  File "wcs/workflows.py", line 94, in perform_items
    url = item.perform(formdata) or url
  File "wcs/wf/create_formdata.py", line 602, in perform
    new_formdata.store()
  File "wcs/sql.py", line 617, in f
    return func(*args, **kwargs)
  File "wcs/qommon/substitution.py", line 27, in f
    return func(*args, **kwargs)
  File "wcs/sql.py", line 2740, in store
    evo._sql_id = cur.fetchone()[0]
#3

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

  • Statut changé de Nouveau à Fermé

Vu et corrigé en #70377, c'est wcs/wf/create_formdata.py une création de demande mais le workflow de celle-ci l'auto-supprime, et

#4

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

  • Lié à Bug #70377: trace sur workflow qui fait une création de demande/fiche et le workflow de la demande/fiche qui supprime celle-ci ajouté

Formats disponibles : Atom PDF