diff --git a/django/core/checks/caches.py b/django/core/checks/caches.py index 069606f400..4986a800d2 100644 --- a/django/core/checks/caches.py +++ b/django/core/checks/caches.py @@ -61,11 +61,12 @@ def check_file_based_cache_is_absolute(app_configs, **kwargs): alias_name = alias location = config - if alias_name is not None and not pathlib.Path(location.get("LOCATION")).is_absolute(): + if (alias_name is not None and + not pathlib.Path(location.get("LOCATION")).is_absolute()): return Warning( - f"Your '{alias_name}' cache LOCATION path is relative. Use an " - f"absolute path instead.", - id="caches.W003", - ) + f"Your '{alias_name}' cache LOCATION path is relative. Use an " + f"absolute path instead.", + id="caches.W003", + ) return []