Be consistent in the task also

This commit is contained in:
tcely 2025-04-08 16:23:48 -04:00 committed by GitHub
parent afe0a75824
commit 033656b436
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -733,7 +733,7 @@ def rename_all_media_for_source(source_id):
f'source exists with ID: {source_id}')
raise InvalidTaskError(_('no such source')) from e
# Check that the settings allow renaming
rename_sources_setting = getattr(settings, 'RENAME_SOURCES', list())
rename_sources_setting = getattr(settings, 'RENAME_SOURCES') or list()
create_rename_tasks = (
(
source.directory and