Projet

Général

Profil

0001-dataviz-avoid-crash-in-spooler-if-cell-was-deleted-6.patch

Valentin Deniaud, 20 janvier 2022 10:36

Télécharger (848 octets)

Voir les différences:

Subject: [PATCH] dataviz: avoid crash in spooler if cell was deleted (#60857)

 combo/utils/spooler.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
combo/utils/spooler.py
97 97
def refresh_statistics_data(cell_pk):
98 98
    from combo.apps.dataviz.models import ChartNgCell
99 99

  
100
    cell = ChartNgCell.objects.get(pk=cell_pk)
100
    try:
101
        cell = ChartNgCell.objects.get(pk=cell_pk)
102
    except ChartNgCell.DoesNotExist:
103
        return
101 104
    cell.get_statistic_data(invalidate_cache=True)
102
-