Opened 14 years ago

Last modified 14 years ago

#1254 enhancement closed invalid (invalid)

Lore's bookify has minimal error handling

Reported by: hypatia Owned by:
Priority: normal Milestone:
Component: lore Keywords:
Cc: spiv, Moshe Zadka, hypatia Branch:


Change History (3)

comment:1 Changed 14 years ago by hypatia

The following line will just crash the script with an IndexError, if there's no
node with a class="toc":

    toc = domhelpers.findElementsWithAttribute(dom, 'class', 'toc')[0]

Likewise, the bookify script itself just crashes with IndexError when it doesn't
get both of its (undocumented) command line arguments:

    book.doFile(sys.argv[1], sys.argv[2])

comment:2 Changed 14 years ago by hypatia

Closing bug now that I've removed the script and the file.

comment:3 Changed 8 years ago by <automation>

Owner: spiv deleted
Note: See TracTickets for help on using tickets.