handle missing root_id

This commit is contained in:
Chaiwat Suttipongsakul 2019-01-29 12:07:30 +07:00
parent c8e8d455a2
commit ba220d59c9

3
app.py
View file

@ -964,7 +964,10 @@ def _build_thread(data, include_children=True):
):
_flatten(snode, level=level + 1)
try:
_flatten(idx[root_id])
except KeyError:
app.logger.info(f"{root_id} is not there! skipping")
return thread