From 6b464d2a6dd2a2ae39bb27dfd53d34fe9e4cee06 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Wed, 11 Jul 2018 23:49:43 +0200 Subject: [PATCH] Fix thread issue --- app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 425b5b6..8229ea6 100644 --- a/app.py +++ b/app.py @@ -763,8 +763,10 @@ def _build_thread(data, include_children=True): if rep_id == root_id: continue reply_of = rep["activity"]["object"]["inReplyTo"] - idx[reply_of]["_nodes"].append(rep) - + try: + idx[reply_of]["_nodes"].append(rep) + except: + pass # Flatten the tree thread = []