diff options
-rw-r--r-- | scss/types.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scss/types.py b/scss/types.py index 5d26185..4dc1918 100644 --- a/scss/types.py +++ b/scss/types.py @@ -613,6 +613,9 @@ class List(Value): return List(self.value * int(other.value), use_comma=self.use_comma) def render(self, compress=False): + if not self.value: + raise ValueError("Can't render empty list as CSS") + delim = self.delimiter(compress) return delim.join( |