From e13e93ad5b267667a548b2417d51eaeb0bf70ab3 Mon Sep 17 00:00:00 2001 From: Scott Lindner Date: Tue, 21 Jan 2025 18:02:49 -0500 Subject: [PATCH] iterate over copy of results vs. modifying and iterating over original list at the same time --- modules/unmatched_assets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/unmatched_assets.py b/modules/unmatched_assets.py index d1b29c3..19d5728 100755 --- a/modules/unmatched_assets.py +++ b/modules/unmatched_assets.py @@ -306,7 +306,7 @@ def main(config): # Remove ignored collections if ignore_collections: for item in ignore_collections: - for collection in results: + for collection in results[:]: if collection['title'] == item: results.remove(collection) media_dict['collections'].extend(results)