m2t icon indicating copy to clipboard operation
m2t copied to clipboard

Error while writing into sql

Open fastesol opened this issue 8 years ago • 0 comments

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

fastesol avatar Aug 05 '17 08:08 fastesol