Handle case when find by id gave None
@@ -116,6 +116,9 @@ def find_from_sections_by_title(sections, names, items):
if not names:
return items
+ if not items:
+ items = []
+
for name in names:
found = False
for section in sections:
