[reportlab-users] error in tables.py (rl 1.21.2)
Robin Becker
robin at reportlab.com
Mon Jul 14 04:59:51 EDT 2008
William Dode wrote:
> 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
>
I'm not certain; we certainly have tests which have one or more rowheights set
as None. Have you got a simple example?
--
Robin Becker
More information about the reportlab-users
mailing list