summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-05-18 07:36:45 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-05-19 08:12:10 (GMT)
commit43f25b588f468bf38d1d28c2710985b73d281664 (patch)
treec3a93334dae5d43d3bea2228b0aabda583864c8a
parent9aaa49f523bcbd9a8ddf8f4d9c1ed83956b478ca (diff)
downloadcombo-43f25b588f468bf38d1d28c2710985b73d281664.zip
combo-43f25b588f468bf38d1d28c2710985b73d281664.tar.gz
combo-43f25b588f468bf38d1d28c2710985b73d281664.tar.bz2
misc: don't crash rendering a text cell without content (#33227)
-rw-r--r--combo/data/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/combo/data/models.py b/combo/data/models.py
index 7f86c38..06285c1 100644
--- a/combo/data/models.py
+++ b/combo/data/models.py
@@ -753,7 +753,7 @@ class TextCell(CellBase):
def get_cell_extra_context(self, context):
extra_context = super(TextCell, self).get_cell_extra_context(context)
- text = self.text
+ text = self.text or ''
render_skeleton = context.get('render_skeleton')
def sub_variadic_url(match):