Skip to content

Conversation

asottile
Copy link
Member

Before you'd get sadness like this:

>>> sass.compile(string='a{')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/asottile/workspace/libsass-python/sass.py", line 648, in compile
    raise CompileError(v)
sass.CompileError: b'Error: Invalid CSS after "a{": expected "}", was ""\n        on line 1 of stdin\n>> a{\n   -^\n'

dahlia added a commit that referenced this pull request Feb 21, 2016
Improve the formatting of CompileErrors in py3
@dahlia dahlia merged commit c84f25c into sass:python Feb 21, 2016
@dahlia
Copy link
Member

dahlia commented Feb 21, 2016

👍

@asottile asottile deleted the improve_exceptions_py3 branch February 21, 2016 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants