Projet

Général

Profil

Bug #79014

backoffice: export-spreadsheet error, block_data est null (TypeError: 'NoneType' object is not subscriptable)

Ajouté par Sentry Io il y a 11 mois. Mis à jour il y a 11 mois.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
25 juin 2023
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

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

TypeError: 'NoneType' object is not subscriptable
(12 additional frame(s) were not displayed)
...
  File "wcs/backoffice/management.py", line 2413, in export_spreadsheet
    return self.csv()
  File "wcs/backoffice/management.py", line 2453, in csv
    job.execute()
  File "wcs/backoffice/management.py", line 4377, in execute
    return self.create_export(formdef, fields, items, total_count)
  File "wcs/backoffice/management.py", line 4390, in create_export
    csv_output.writerow(tuple(x['value'] for x in self.get_spreadsheet_line(fields, filled)))
  File "wcs/backoffice/management.py", line 4316, in get_spreadsheet_line
    block_row_data = block_data['data'][i]

Demandes liées

Lié à w.c.s. - Bug #79284: backoffice: get_spreadsheet_line error (UnboundLocalError: local variable 'block_row_data' referenced before assignment)Fermé01 juillet 2023

Actions

Révisions associées

Révision 87db4a13 (diff)
Ajouté par Corentin Séchet il y a 11 mois

backoffice: fix export of empty block fields to spreadsheets (#79014)

Historique

#1

Mis à jour par Lauréline Guérin il y a 11 mois

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

Mis à jour par Corentin Séchet il y a 11 mois

  • Assigné à mis à Corentin Séchet
#3

Mis à jour par Robot Gitea il y a 11 mois

  • Statut changé de Nouveau à Solution proposée

Corentin Sechet (csechet) a ouvert une pull request sur Gitea concernant cette demande :

#4

Mis à jour par Robot Gitea il y a 11 mois

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

Frédéric Péters (fpeters) a approuvé une pull request sur Gitea concernant cette demande :

#5

Mis à jour par Robot Gitea il y a 11 mois

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

Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :

#6

Mis à jour par Transition automatique il y a 11 mois

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

Mis à jour par Lauréline Guérin il y a 11 mois

  • Lié à Bug #79284: backoffice: get_spreadsheet_line error (UnboundLocalError: local variable 'block_row_data' referenced before assignment) ajouté
#8

Mis à jour par Transition automatique il y a 8 mois

Automatic expiration

Formats disponibles : Atom PDF