From 4f5499eba95979f8c458b4e72d1dfabd0bf8c30a Mon Sep 17 00:00:00 2001 From: Fuxino Date: Thu, 8 Oct 2026 18:05:11 +0200 Subject: [PATCH] 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. --- simple_backup/simple_backup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simple_backup/simple_backup.py b/simple_backup/simple_backup.py index 2636ad2..749e148 100755 --- a/simple_backup/simple_backup.py +++ b/simple_backup/simple_backup.py @@ -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'