[python-win32] Null provokes unicode error.

Simon Brunning simon.brunning at gmail.com
Tue Aug 23 13:32:30 CEST 2005


On 8/23/05, Peter Jessop <pjessop at gmail.com> wrote:
> 'Traceback (most recent call last): 
>   File "C:\Scripts\Script2.py", line 4, in ?
>     print objChild.Name + '\t' + objChild.Description
> TypeError: coercing to Unicode: need string or buffer, NoneType found'

Try:

print objChild.Name, '\t', objChild.Description

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/


More information about the Python-win32 mailing list