fix: [trackers] fix get_all_items_sources

This commit is contained in:
Terrtia 2021-12-08 15:15:02 +01:00
parent ebcffd4b95
commit 19846997d9
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -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: