From 1e1ed287b58a70a34f17f727a0363dee356b4c20 Mon Sep 17 00:00:00 2001 From: Andrew Luchuk Date: Thu, 2 Oct 2025 21:21:35 -0400 Subject: [PATCH] Fix bug in retrieving the user agent list --- ai_blocker/ualist_backers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai_blocker/ualist_backers.py b/ai_blocker/ualist_backers.py index d257e3a..3545248 100644 --- a/ai_blocker/ualist_backers.py +++ b/ai_blocker/ualist_backers.py @@ -20,4 +20,4 @@ class UAList(ABC): class ConfigBackedUAList(UAList): def get_ua_list(self) -> list[str]: - return list(getattr(getattr(settings, "AI_BLOCKER_CONF"), "ua_list", [])) \ No newline at end of file + return list(getattr(settings, "AI_BLOCKER_CONF").get("ua_list", [])) \ No newline at end of file