[reportlab-users] error in tables.py (rl 1.21.2)

William Dode wilk at flibuste.net
Thu Jul 10 12:06:58 EDT 2008


Hi,

I've a random error on a table, i mean that it depends of the datas and
so it's difficult to reproduce...

It raise :

eportlab.platypus.tables:1103 in _getFirstPossibleSplitRowPosition
<< for rh in self._rowHeights:
if h+rh>availHeight:
break
if not impossible.has_key(n):>> if h+rh>availHeight:

TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

in fact rh is None and self._rowHeights = [None, None, None]

I could resolve the problem by adding rh = rh or 0 but i don't know
why...

Any idea if i do something wrong or if it's a know bug ?

thx

--
William Dodé - http://flibuste.net
Informaticien indépendant



More information about the reportlab-users mailing list