style_manager crashes on empty outlineLevelKey

Bug #719270 reported by Thomas Roth on 2011-02-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Appy
Undecided
Gaëtan Delannay

Bug Description

On reading certain documents I get an exception from styles_manager.py:

  File "..../site-packages/appy/pod/styles_manager.py", line 156, in startElement
    style.outlineLevel = int(attrs[outlineLevelKey])
ValueError: invalid literal for int() with base 10: ''

It seems like even though attrs[outlineLevelKey] exists, it's just an empty string. A patch is attached.

Thomas Roth (nezza) wrote :

Hi Thomas,
Thank you !
It will be included in the next Appy release...
Cheers
Gaetan

Changed in appy:
status: New → Fix Committed
Changed in appy:
milestone: none → 0.6.4
status: Fix Committed → Fix Released
Changed in appy:
assignee: nobody → Gaëtan Delannay (gaetan-delannay)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers