From b4d4ed8a5c4bb352ce30787039ff8d56864d6f3f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 7 Feb 2026 08:48:47 +0530 Subject: [PATCH] ... --- src/calibre/utils/config_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/config_base.py b/src/calibre/utils/config_base.py index e2b3da3a74..71d7541a47 100644 --- a/src/calibre/utils/config_base.py +++ b/src/calibre/utils/config_base.py @@ -639,7 +639,7 @@ def parse_python_tweaks(text: str) -> dict[str, object]: # Get the value (must be a literal) try: value = ast.literal_eval(node.value) - except (ValueError, TypeError): + except Exception: # Skip non-literal values continue # Extract target variable names