feat: Update models.py

remove white space.
This commit is contained in:
Yagnesh1998
2023-08-04 10:33:49 +05:30
committed by GitHub
parent 3a763b6b3e
commit e7e69d5cd7

View File

@@ -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)