Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Error while writing into sql #7

Open
fastesol opened this issue Aug 5, 2017 · 0 comments
Open

Error while writing into sql #7

fastesol opened this issue Aug 5, 2017 · 0 comments

Comments

@fastesol
Copy link

fastesol commented Aug 5, 2017

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant