sqlite3.InterfaceError: Error binding parameter 1 - probably unsupported type

前端 未结 2 1048
野趣味
野趣味 2021-01-01 17:04

I am having this annoying error that I could not solve.. here is my function

def savePicture(pic):
try:
    connection=sqlite3.connect(\'/home/faris/Desktop/         


        
2条回答
  •  爱一瞬间的悲伤
    2021-01-01 17:17

    Ok, That is stupid lol

        pic.caption,
        pic.created_time,
    

    are not TEXT type..but the error msg is saying the problem from pic.user.profile_picture. thus, if you have this error just check all the parameters :)

    Read the comment below :)

提交回复
热议问题