mirror of https://gitlab.com/bashrc2/epicyon
Check that there are some lists enabled
parent
0c0cbf9485
commit
6a4cb89f58
|
@ -879,6 +879,8 @@ def brochModeLapses(baseDir: str, lapseDays: int = 7) -> bool:
|
||||||
def loadCWLists(baseDir: str, verbose: bool, listsEnabled: str) -> {}:
|
def loadCWLists(baseDir: str, verbose: bool, listsEnabled: str) -> {}:
|
||||||
"""Load lists used for content warnings
|
"""Load lists used for content warnings
|
||||||
"""
|
"""
|
||||||
|
if not listsEnabled:
|
||||||
|
return {}
|
||||||
if not os.path.isdir(baseDir + '/cwlists'):
|
if not os.path.isdir(baseDir + '/cwlists'):
|
||||||
return {}
|
return {}
|
||||||
result = {}
|
result = {}
|
||||||
|
|
Loading…
Reference in New Issue