Refs #27854 -- Skipped subsequent checks if STATICFILES_DIRS is not a list or tuple.

This commit is contained in:
Jacob Walls 2021-03-01 08:42:22 -05:00 committed by Mariusz Felisiak
parent f55f3ce831
commit be8faa7c75
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ class FileSystemFinder(BaseFinder):
hint='Perhaps you forgot a trailing comma?',
id='staticfiles.E001',
))
return errors
for root in settings.STATICFILES_DIRS:
if isinstance(root, (list, tuple)):
prefix, root = root