diff options
author | German M. Bravo <german.mb@deipi.com> | 2013-10-06 12:58:58 -0500 |
---|---|---|
committer | German M. Bravo <german.mb@deipi.com> | 2013-10-06 12:58:58 -0500 |
commit | 5039f09d28cfafdf9cddc6885dddca420c855f98 (patch) | |
tree | 1ca78c3887ea6751bc7a78f37ec31a0bbf7f8c68 | |
parent | 849cd777e848970b6fad14dc8856ff82e64ad6ab (diff) | |
download | pyscss-5039f09d28cfafdf9cddc6885dddca420c855f98.tar.gz |
Added SyntaxError catching in the scss interactive tool
-rw-r--r-- | scss/tool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/tool.py b/scss/tool.py index f1bced0..205bb81 100644 --- a/scss/tool.py +++ b/scss/tool.py @@ -395,7 +395,7 @@ class SassRepl(object): # TODO respect compress? try: yield(self.calculator.calculate(s).render()) - except SassEvaluationError as e: + except (SyntaxError, SassEvaluationError) as e: print("%s" % e, file=sys.stderr) |