Skip to content

Commit 5021e85

Browse files
committed
Cast to str before word tree-izing
1 parent e53b73f commit 5021e85

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

processors/visualisation/word-trees.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ def process(self):
212212
if processed % 500 == 0:
213213
self.dataset.update_status("Processing and tokenising post %i" % processed)
214214
body = post.get(column)
215+
216+
try:
217+
body = str(body)
218+
except TypeError:
219+
continue
220+
215221
if not body:
216222
continue
217223

0 commit comments

Comments
 (0)