diff --git a/src/filters/rclpython b/src/filters/rclpython index f3ba764f..990d03b5 100755 --- a/src/filters/rclpython +++ b/src/filters/rclpython @@ -141,6 +141,9 @@ class Parser: line = ex[1][0] self.out.write("

ERROR: %s

%s\n" % ( msg, self.raw[self.lines[line]:])) + except IndentationError, ex: + msg = ex[0] + self.out.write("

ERROR: %s

\n" % (msg)) self.out.write('\n') def __call__(self, toktype, toktext, (srow,scol), (erow,ecol), line):