Commit 55042345 authored by Fidel Alfaro Almagro's avatar Fidel Alfaro Almagro
Browse files

Update bb_file_manager.py - Removing unneeded ['path'] string

parent 7984cfc9
......@@ -93,7 +93,7 @@ def bb_file_manager(logger, subject, check_existence, check_normalisation,
if check_existence:
# Check the config file is correct. If not, correct it.
#keysToDele = [key for key in fileConfig if not os.path.exists(fileConfig[key])]
keysToDele = [key for key in fileConfig if ((not isinstance(fileConfig[key], list)) and (not os.path.exists(fileConfig[key]['path'])))]
keysToDele = [key for key in fileConfig if ((not isinstance(fileConfig[key], list)) and (not os.path.exists(fileConfig[key])))]
for key in keysToDele:
del fileConfig[key]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment