summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerman M. Bravo <german.mb@deipi.com>2013-10-06 12:58:58 -0500
committerGerman M. Bravo <german.mb@deipi.com>2013-10-06 12:58:58 -0500
commit5039f09d28cfafdf9cddc6885dddca420c855f98 (patch)
tree1ca78c3887ea6751bc7a78f37ec31a0bbf7f8c68
parent849cd777e848970b6fad14dc8856ff82e64ad6ab (diff)
downloadpyscss-5039f09d28cfafdf9cddc6885dddca420c855f98.tar.gz
Added SyntaxError catching in the scss interactive tool
-rw-r--r--scss/tool.py2
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)