Skip to content

Commit 74ab677

Browse files
authored
better error msg (#39667)
Co-authored-by: JHM Darbyshire (iMac) <[email protected]>
1 parent 2ce2a74 commit 74ab677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/formats/style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2085,6 +2085,6 @@ def _maybe_convert_css_to_tuples(style: CSSProperties) -> CSSSequence:
20852085
except IndexError:
20862086
raise ValueError(
20872087
"Styles supplied as string must follow CSS rule formats, "
2088-
f"for example 'attr: val;'. {style} was given."
2088+
f"for example 'attr: val;'. '{style}' was given."
20892089
)
20902090
return style

0 commit comments

Comments
 (0)