handle missing root_id
This commit is contained in:
parent
c8e8d455a2
commit
ba220d59c9
1 changed files with 4 additions and 1 deletions
5
app.py
5
app.py
|
@ -964,7 +964,10 @@ def _build_thread(data, include_children=True):
|
||||||
):
|
):
|
||||||
_flatten(snode, level=level + 1)
|
_flatten(snode, level=level + 1)
|
||||||
|
|
||||||
_flatten(idx[root_id])
|
try:
|
||||||
|
_flatten(idx[root_id])
|
||||||
|
except KeyError:
|
||||||
|
app.logger.info(f"{root_id} is not there! skipping")
|
||||||
|
|
||||||
return thread
|
return thread
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue