save unnecessary call

This commit is contained in:
Mustafa-Zarkash 2023-10-09 14:46:32 +03:00
parent 587beadd4d
commit 1824670bcc

View file

@ -35,10 +35,10 @@ def generate_shelves():
for shelf_set_config in shelves_set_config:
shelf_set_filepath = shelf_set_config.get('shelf_set_source_path')
shelf_set_os_filepath = shelf_set_filepath[current_os]
shelf_set_os_filepath = get_path_using_template_data(
shelf_set_os_filepath, template_data
)
if shelf_set_os_filepath:
shelf_set_os_filepath = get_path_using_template_data(
shelf_set_os_filepath, template_data
)
if not os.path.isfile(shelf_set_os_filepath):
log.error("Shelf path doesn't exist - "
"{}".format(shelf_set_os_filepath))