catch AttributeError while counting columns

This commit is contained in:
Bezleputh 2014-12-05 14:12:40 +01:00
commit c3e824c403

View file

@ -302,7 +302,7 @@ class TableElement(ListElement):
self._cols[name] = colnum
try:
colnum += int(el.attrib.get('colspan', 1))
except ValueError:
except (ValueError, AttributeError) as e:
colnum += 1
def get_colnum(self, name):