diff --git a/blocking.py b/blocking.py index 148191c52..b55282d55 100644 --- a/blocking.py +++ b/blocking.py @@ -879,6 +879,8 @@ def brochModeLapses(baseDir: str, lapseDays: int = 7) -> bool: def loadCWLists(baseDir: str, verbose: bool, listsEnabled: str) -> {}: """Load lists used for content warnings """ + if not listsEnabled: + return {} if not os.path.isdir(baseDir + '/cwlists'): return {} result = {}