From e7e69d5cd7043a9ef00c98a37f9734b2887f2078 Mon Sep 17 00:00:00 2001 From: Yagnesh1998 <127923546+Yagnesh1998@users.noreply.github.com> Date: Fri, 4 Aug 2023 10:33:49 +0530 Subject: [PATCH] feat: Update models.py remove white space. --- openedx/core/djangoapps/content/block_structure/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/openedx/core/djangoapps/content/block_structure/models.py b/openedx/core/djangoapps/content/block_structure/models.py index 9925701a63..285deafa7d 100644 --- a/openedx/core/djangoapps/content/block_structure/models.py +++ b/openedx/core/djangoapps/content/block_structure/models.py @@ -262,7 +262,6 @@ class BlockStructureModel(TimeStampedModel): all_files_by_date = sorted(cls._get_all_files(data_usage_key)) files_to_delete = all_files_by_date[:-num_to_keep] if num_to_keep > 0 else all_files_by_date # lint-amnesty, pylint: disable=invalid-unary-operand-type cls._delete_files(files_to_delete) - except Exception: # pylint: disable=broad-except log.exception('BlockStructure: Exception when deleting old files; data_usage_key: %s.', data_usage_key)