mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-03-10 03:43:40 -04:00
...
This commit is contained in:
parent
6cb0e38c43
commit
b4d4ed8a5c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user