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

Error while writing into sql #7

@fastesol

Description

@fastesol

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions