IndexError when cell style is missing
WorksheetReader.bind_cells
has the following code
style = self.ws.parent._cell_styles[cell['style_id']]
that breaks if the style is missing. Catching IndexError
and setting style to None worked fine for us
try:
style = self.ws.parent._cell_styles[cell['style_id']]
except IndexError:
style = None
It could be a nice fallback since styles are not as important as reading the data reliably.
Edited by Andrei Fokau