From 19846997d99a5068a7d2999ce3b8017f887c8317 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Wed, 8 Dec 2021 15:15:02 +0100 Subject: [PATCH] fix: [trackers] fix get_all_items_sources --- bin/lib/item_basic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/lib/item_basic.py b/bin/lib/item_basic.py index fdc6587d..308dcb21 100755 --- a/bin/lib/item_basic.py +++ b/bin/lib/item_basic.py @@ -182,6 +182,8 @@ def add_map_obj_id_item_id(obj_id, item_id, obj_type): ## COMMON ## def _get_dir_source_name(directory, source_name=None, l_sources_name=set(), filter_dir=False): + if not l_sources_name: + l_sources_name = set() if source_name: l_dir = os.listdir(os.path.join(directory, source_name)) else: