change header handling in add_disclaimer and store

This commit is contained in:
2020-11-10 19:55:18 +01:00
parent 4269420633
commit 1e228c91ba
3 changed files with 28 additions and 35 deletions

View File

@@ -125,8 +125,8 @@ def main():
socket = config["global"]["socket"]
else:
raise RuntimeError(
f"listening socket is neither specified on the command line "
f"nor in the configuration file")
"listening socket is neither specified on the command line "
"nor in the configuration file")
if "local_addrs" in config["global"]:
local_addrs = config["global"]["local_addrs"]
@@ -140,7 +140,7 @@ def main():
if "rules" not in config:
raise RuntimeError(
f"mandatory config section 'rules' not found")
"mandatory config section 'rules' not found")
if not config["rules"]:
raise RuntimeError("no rules configured")