From e52293b30a8e8961dbe790a42c578f2d8fc9c5c3 Mon Sep 17 00:00:00 2001 From: "JHM Darbyshire (iMac)" Date: Mon, 8 Feb 2021 08:19:24 +0100 Subject: [PATCH] better error msg --- pandas/io/formats/style.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 3d9eb4e96f78a..fa12f04b0168a 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -2066,6 +2066,6 @@ def _maybe_convert_css_to_tuples(style: CSSProperties) -> CSSSequence: except IndexError: raise ValueError( "Styles supplied as string must follow CSS rule formats, " - f"for example 'attr: val;'. {style} was given." + f"for example 'attr: val;'. '{style}' was given." ) return style