Kronuz / pyScss

pyScss, a Scss compiler for Python
MIT License
582 stars 141 forks source link

fix crash from TypeError in compass support #276

Closed jschneier closed 10 years ago

jschneier commented 10 years ago

Using django-pipeline with Compass I do

@import "compass/reset";

which gives me a big fancy error message

SassEvaluationError: Error evaluating expression: elements-of-type(html5-block)

eventually ending in

.virtualenvs/project/lib/python2.7/site-packages/scss/types.py", line 563, in __init__ raise TypeError("Expected a Sass type, got %r" % (item,)) TypeError: Expected a Sass type, got 'article'

Drilling into the source code a bit shows that we are passing a list of normal python strings to the List constructor and it expects a list of Values. All I'm doing is converting all of those CSS elements into Strings before they get passed to the constructor which fixes the issue for me.

jschneier commented 10 years ago

hey is this still maintained at all?

eevee commented 10 years ago

yes! just very intermittently, sorry. this looks fine.

jschneier commented 10 years ago

no worries, thanks a lot!