0001-dataviz-avoid-crash-in-spooler-if-cell-was-deleted-6.patch
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 |
- |