m2t
m2t copied to clipboard
Error while writing into sql
Hi, I found the following error while code is trying to data write data into DB
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/bottle.py", line 862, in _handle
return route.call(**args)
File "/usr/lib/python2.7/site-packages/bottle.py", line 1740, in wrapper
rv = callback(*a, **ka)
File "/tmp/libtorrent/m2t-master/m2t/api.py", line 110, in api_upload
add_to_database(item)
File "/tmp/libtorrent/m2t-master/m2t/api.py", line 359, in add_to_database
db.execute("INSERT INTO torrent(hash, retrieving_data) VALUES (%s, 1)", (hash))
File "/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py", line 187, in execute
query = query % tuple([db.literal(item) for item in args])
TypeError: not all arguments converted during string formatting