Oct 10, 2018

[HDGEM] How to fix: TypeError: 'long' object is not iterable in MySQLdb

You need to give cursor.execute a tuple, but you only gave it one integer/long:
(listid)
Add a comma to make that a tuple:
(listid,)
The full line then'd be: 
cursor2.execute ('CALL `hqgem`.`general_update_list_totalcontacts`(%s);', (listid,))


--
Posted By Blogger to HDGEM at 4/01/2017 11:14:00 AM