Allow '%' in config file values

ConfigParser interpolation treats '%' as special, so a path or
pattern containing it crashed the program. Disable interpolation,
which is not used by the config file.
This commit is contained in:
Fuxino
2026-10-08 18:05:11 +02:00
parent fc165fccbf
commit 4f5499eba9
+2 -1
View File
@@ -750,7 +750,8 @@ def _read_config(config_file, user: Optional[str] = None):
return config_args
config = configparser.ConfigParser()
# Disable interpolation, so that '%' can be used in paths and patterns
config = configparser.ConfigParser(interpolation=None)
config.read(config_file)
section = 'backup'