fix: check config failed for non-testrun domains

This commit is contained in:
missytake
2023-12-15 20:25:58 +01:00
parent 92ca3283fd
commit a1355c10ca

View File

@@ -364,7 +364,7 @@ def check_config(config):
if mail_domain != "testrun.org" and not mail_domain.endswith(".testrun.org"):
blocked_words = "merlinux schmieder testrun.org".split()
for value in config.__dict__.values():
if any(x in value for x in blocked_words):
if any(x in str(value) for x in blocked_words):
raise ValueError(
f"please set your own privacy contacts/addresses in {config._inipath}"
)