rclpython: catch exception caused by indentation error in doc
This commit is contained in:
parent
243bea8e44
commit
2afc769c38
@ -141,6 +141,9 @@ class Parser:
|
|||||||
line = ex[1][0]
|
line = ex[1][0]
|
||||||
self.out.write("<h3>ERROR: %s</h3>%s\n" % (
|
self.out.write("<h3>ERROR: %s</h3>%s\n" % (
|
||||||
msg, self.raw[self.lines[line]:]))
|
msg, self.raw[self.lines[line]:]))
|
||||||
|
except IndentationError, ex:
|
||||||
|
msg = ex[0]
|
||||||
|
self.out.write("<h3>ERROR: %s</h3>\n" % (msg))
|
||||||
self.out.write('\n</pre>')
|
self.out.write('\n</pre>')
|
||||||
|
|
||||||
def __call__(self, toktype, toktext, (srow,scol), (erow,ecol), line):
|
def __call__(self, toktype, toktext, (srow,scol), (erow,ecol), line):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user