This happens when the description value is null.
How do I avoid this problem?
You can not add string to None,
>>> "ASd"+None
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: cannot concatenate 'str' and 'NoneType' objects
>>>
try something like:
import win32com.client
objContainer = win32com.client.GetObject("LDAP://cn=users,dc=agri,dc=local")
for objChild in objContainer:
if not objChild.Description: objChild.Description = ''
print objChild.Name + '\t' + objChild.Description
Amit Upadhyay
Blog: http://www.rootshell.be/~upadhyay
+91-9867-359-701
_______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32