diff --git a/couchpotato/core/settings/model.py b/couchpotato/core/settings/model.py index 82dbdbe..db9b540 100644 --- a/couchpotato/core/settings/model.py +++ b/couchpotato/core/settings/model.py @@ -182,7 +182,7 @@ class Library(Entity): if include_root: root_library = related_libraries.get(root_key) - orig_dict['root_library'] = root_library[0] if len(root_library) else None + orig_dict['root_library'] = root_library[0] if root_library else None return orig_dict