style_manager crashes on empty outlineLevelKey

Bug #719270 reported by Thomas Roth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Appy
Fix Released
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.

Revision history for this message
Thomas Roth (nezza) wrote :
Revision history for this message
Gaëtan Delannay (gaetan-delannay) 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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.