problem with appending to a list, possibly mysqldb related

John Salerno johnjsal at NOSPAMgmail.com
Thu Aug 31 14:38:44 EDT 2006


John Purser wrote:

> I'd say you had a record with a null value for the namefirst field.
> The join method don't like that.  

Wow, you're right! I tried this:

if x[0] and not x[0] == 'NULL':

and sure enough it works after that. (Not sure if that's the best way to 
test, though. Just testing for NULL still produced the error, so I 
guessed that some namefirst fields were actually blank.)



More information about the Python-list mailing list