iambus/xunlei-lixian — Issue #6: 上传种子时报异常
Author: fsjack
Created: 2011-12-04 16:40:51+00:00
State: open

Traceback (most recent call last):
File "lixian_cli.py", line 625, in
execute_command()
File "lixian_cli.py", line 622, in execute_command
commands[command](args[1:])
File "lixian_cli.py", line 551, in add_task
tasks = find_torrents_task_to_download(client, links)
File "lixian_cli.py", line 339, in find_torrents_task_to_download
client.add_torrent_task_by_content(torrent, os.path.basename(link))
File "/Users/Jackie/scripts/xunlei-lixian/lixian.py", line 261, in add_torrent_task_by_content
response = self.urlopen(commit_url, data=data).read()
File "/Users/Jackie/scripts/xunlei-lixian/lixian.py", line 40, in urlopen
args['data'] = urllib.urlencode(args['data'])
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 1294, in urlencode
v = quote_plus(str(v))

好像是编码问题，python 2.7不兼容？