Python crawl data is written to mysql error pymysql.err.ProgrammingError: Cursor closed

clipboard.png

for loop write crawl to crawl data, and then write mysql, to look at the database, the write is successful, but reported an error, may I ask why?

Jul.27,2021

cursor is closed. There is too little information, and I speculate that some operations may automatically close the cursor, and then you use this cursor. Or do you close the cursor and you don't know it?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b160d7-2a766.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b160d7-2a766.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?