mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Skip section on runtimeerror
This commit is contained in:
parent
a69e3991b3
commit
724c852a4c
@ -1099,7 +1099,12 @@ class Markdown:
|
|||||||
for regexp in ['ul', 'ol', 'quoted', 'tabbed'] :
|
for regexp in ['ul', 'ol', 'quoted', 'tabbed'] :
|
||||||
m = RE.regExp[regexp].match(lines[0])
|
m = RE.regExp[regexp].match(lines[0])
|
||||||
if m :
|
if m :
|
||||||
|
try:
|
||||||
processFn[regexp](parent_elem, lines, inList)
|
processFn[regexp](parent_elem, lines, inList)
|
||||||
|
except RuntimeError:
|
||||||
|
print 'WARNING: Max recursion depth excedeeded, skipping section'
|
||||||
|
#print '\n'.join(lines)
|
||||||
|
#sys.exit()
|
||||||
return
|
return
|
||||||
|
|
||||||
# We are NOT looking at one of the high-level structures like
|
# We are NOT looking at one of the high-level structures like
|
||||||
|
Loading…
x
Reference in New Issue
Block a user