This commit is contained in:
Kovid Goyal 2026-02-07 08:48:47 +05:30
parent 6cb0e38c43
commit b4d4ed8a5c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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