Traceback (most recent call last):


 "/usr/lib/python3.9/site-packages/sphinx/events.py", line 111, in emit

results.append(listener.handler(self.app, *args))


 "/usr/lib/python3.9/site-packages/sphinx/environment/collectors/toctree.py", line 129, in process_doc

toc = build_toc(doctree)


 "/usr/lib/python3.9/site-packages/sphinx/environment/collectors/toctree.py", line 109, in build_toc

sub_item = build_toc(sectionnode, depth + 1)


 "/usr/lib/python3.9/site-packages/sphinx/environment/collectors/toctree.py", line 109, in build_toc

sub_item = build_toc(sectionnode, depth + 1)


 "/usr/lib/python3.9/site-packages/sphinx/environment/collectors/toctree.py", line 109, in build_toc

sub_item = build_toc(sectionnode, depth + 1)


 "/usr/lib/python3.9/site-packages/sphinx/environment/collectors/toctree.py", line 94, in build_toc

nodetext = visitor.get_entry_text()


 "/usr/lib/python3.9/site-packages/docutils/transforms/parts.py", line 162, in get_entry_text

return self.get_tree_copy().children


 "/usr/lib/python3.9/site-packages/docutils/nodes.py", line 2103, in get_tree_copy

return self.parent[0]
IndexError: list index out of range

Traceback (most recent call last):


 "/home/wjzhou/ws/kindle4rss/kindleunpack/kindleunpack.py", line 968, in <module>

sys.exit(main())


 "/home/wjzhou/ws/kindle4rss/kindleunpack/kindleunpack.py", line 957, in main

unpackBook(infile, outdir, apnxfile, epubver, use_hd)


 "/home/wjzhou/ws/kindle4rss/kindleunpack/kindleunpack.py", line 871, in unpackBook

process_all_mobi_headers(files, apnxfile, sect, mhlst, K8Boundary, False, epubver, use_hd)


 "/home/wjzhou/ws/kindle4rss/kindleunpack/kindleunpack.py", line 794, in process_all_mobi_headers

processMobi7(mh, metadata, sect, files, imgnames)


 "/home/wjzhou/ws/kindle4rss/kindleunpack/kindleunpack.py", line 572, in processMobi7

ncx_data = ncx.parseNCX()


 "/home/wjzhou/ws/kindle4rss/kindleunpack/mobi_ncx.py", line 36, in parseNCX

outtbl, ctoc_text = self.mi.getIndexData(self.ncxidx, "NCX")


 "/home/wjzhou/ws/kindle4rss/kindleunpack/mobi_index.py", line 29, in getIndexData

ctocdict = self.readCTOC(cdata)


 "/home/wjzhou/ws/kindle4rss/kindleunpack/mobi_index.py", line 120, in readCTOC

pos, ilen = getVariableWidthValue(txtdata, offset)


 "/home/wjzhou/ws/kindle4rss/kindleunpack/mobi_index.py", line 144, in getVariableWidthValue

v = data[offset + consumed]
IndexError: string index out of range
