From 7e2bcdfdb016f554db27b4d6dcef8e6aeb9af2e6 Mon Sep 17 00:00:00 2001 From: cccs-rs <62077998+cccs-rs@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:57:23 -0500 Subject: [PATCH] Update badlist.py --- badlist/badlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/badlist/badlist.py b/badlist/badlist.py index ab33e90..cd86e6d 100644 --- a/badlist/badlist.py +++ b/badlist/badlist.py @@ -22,7 +22,7 @@ def __init__(self, config=None): # This is a map that allows us to override the default badlist scoring by source self.source_score_override = { source_name: int(config["score"]) - for source_name, config in self.config.get("updater").items() + for source_name, config in self.config.get("updater", {}).items() if config.get("type") == "blocklist" and config.get("score") }