fix: disable ConfigParser interpolation: causes an exception with unescaped %, we do not use interpolation anyway

This commit is contained in:
frederik
2024-03-30 09:42:20 +01:00
parent b61a78ed55
commit cb2969fd39
+1 -1
View File
@@ -29,7 +29,7 @@ def _load_settings(settings_path='/etc/birdnet/birdnet.conf', force_reload=False
global _settings
if _settings is None or force_reload:
with open(settings_path) as f:
parser = PHPConfigParser()
parser = PHPConfigParser(interpolation=None)
# preserve case
parser.optionxform = lambda option: option
lines = chain(("[top]",), f)