catch AttributeError while counting columns
This commit is contained in:
parent
f8d91bb8e3
commit
c3e824c403
1 changed files with 1 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ class TableElement(ListElement):
|
||||||
self._cols[name] = colnum
|
self._cols[name] = colnum
|
||||||
try:
|
try:
|
||||||
colnum += int(el.attrib.get('colspan', 1))
|
colnum += int(el.attrib.get('colspan', 1))
|
||||||
except ValueError:
|
except (ValueError, AttributeError) as e:
|
||||||
colnum += 1
|
colnum += 1
|
||||||
|
|
||||||
def get_colnum(self, name):
|
def get_colnum(self, name):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue