diff --git a/openedx/features/offline_mode/storage_management.py b/openedx/features/offline_mode/storage_management.py index 20aa7fb25d85..0bec0341d614 100644 --- a/openedx/features/offline_mode/storage_management.py +++ b/openedx/features/offline_mode/storage_management.py @@ -58,8 +58,8 @@ def generate_offline_content(self): self.create_zip_file(tmp_dir, base_path, f'{self.xblock.location.block_id}.zip') except Http404: log.error( - f'Block {xblock.location.block_id} cannot be fetched from course' - f' {xblock.location.course_key} during offline content generation.' + f'Block {self.xblock.location.block_id} cannot be fetched from course' + f' {self.xblock.location.course_key} during offline content generation.' ) finally: shutil.rmtree(tmp_dir, ignore_errors=True)