fix: disable ConfigParser interpolation: causes an exception with unescaped %, we do not use interpolation anyway
This commit is contained in:
@@ -29,7 +29,7 @@ def _load_settings(settings_path='/etc/birdnet/birdnet.conf', force_reload=False
|
|||||||
global _settings
|
global _settings
|
||||||
if _settings is None or force_reload:
|
if _settings is None or force_reload:
|
||||||
with open(settings_path) as f:
|
with open(settings_path) as f:
|
||||||
parser = PHPConfigParser()
|
parser = PHPConfigParser(interpolation=None)
|
||||||
# preserve case
|
# preserve case
|
||||||
parser.optionxform = lambda option: option
|
parser.optionxform = lambda option: option
|
||||||
lines = chain(("[top]",), f)
|
lines = chain(("[top]",), f)
|
||||||
|
|||||||
Reference in New Issue
Block a user