Handle case when find by id gave None
MODIFY
plextraktsync/walker.py
plextraktsync/walker.py
@@ -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:

Handle case when find by id gave None