Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Dec 27, 2023
1 parent 1328c26 commit c666291
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions weasyprint/css/computed_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def compute_var(name, computed_style, parent_style):
validator = PROPERTIES[validation_name]
for i, variable in variables.items():
variable_name, default = variable
value = resolve_var(
resolved_value = value = resolve_var(
computed_style, variable_name, default, parent_style)

if value is not None:
Expand All @@ -263,8 +263,8 @@ def compute_var(name, computed_style, parent_style):
value = ''.join(token.serialize() for token in value)
LOGGER.warning(
'Unsupported computed value "%s" set in variable %r '
'for property %r.', value, variable_name.replace('_', '-'),
validation_name)
'for property %r.', resolved_value,
variable_name.replace('_', '-'), validation_name)
values[i] = (parent_style if inherited else INITIAL_VALUES)[name]
elif multiple_values:
# Replace original variable by possibly multiple validated values.
Expand Down

0 comments on commit c666291

Please sign in to comment.