diff --git a/cumulusci/tasks/salesforce/salesforce_files.py b/cumulusci/tasks/salesforce/salesforce_files.py index 82eee726ce..d4a199902a 100644 --- a/cumulusci/tasks/salesforce/salesforce_files.py +++ b/cumulusci/tasks/salesforce/salesforce_files.py @@ -105,7 +105,8 @@ def _run_task(self): file_exists = os.path.exists(local_filename) if file_exists: - self.logger.info(f'A file with the name {current_file['FileName']} already exists. in the directory. This file will be renamed.') + file_name = current_file['FileName'] + self.logger.info(f'A file with the name {file_name} already exists. in the directory. This file will be renamed.') if file_exists: count = 1 while True: