From cdfea499bebedb08a9e281056897d59f7398ca3d Mon Sep 17 00:00:00 2001 From: almaz amanzholuly <almaz.q19@gmail.com> Date: Sun, 24 Mar 2024 05:11:07 +0500 Subject: [PATCH] clean-up --- django/core/checks/caches.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 []