From 1ec47c5993d05c2be42e3977a1ea1f8143a35539 Mon Sep 17 00:00:00 2001 From: karolamik13 Date: Wed, 13 Nov 2024 13:41:13 +0100 Subject: [PATCH] if for 'fixed_files' removed --- prody/proteins/interactions.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/prody/proteins/interactions.py b/prody/proteins/interactions.py index fd6124a3d..c80140689 100644 --- a/prody/proteins/interactions.py +++ b/prody/proteins/interactions.py @@ -3733,11 +3733,10 @@ def calcSignatureInteractions(mapping_file, PDB_folder, **kwargs): # Remove all fixed files at the end if remove_tmp_files == True: - if 'fixed_files' in locals(): - for fixed_file in fixed_files: - if os.path.exists(fixed_file): - os.remove(fixed_file) - log_message("Removed fixed file: {}".format(fixed_file)) + for fixed_file in fixed_files: + if os.path.exists(fixed_file): + os.remove(fixed_file) + log_message("Removed fixed file: {}".format(fixed_file))