diff options
author | Damien Churchill <damoxc@gmail.com> | 2011-10-05 01:26:11 +0100 |
---|---|---|
committer | Damien Churchill <damoxc@gmail.com> | 2011-10-05 01:40:40 +0100 |
commit | 39d19b5afd4d5653f81ea1b55aa0d6e300550411 (patch) | |
tree | 32fa51aaab7eb4963e6ee65a7616b2cd47b3a29f | |
parent | e8506b925fecd53901e6100ddecf20b17082e273 (diff) | |
download | deluge-39d19b5afd4d5653f81ea1b55aa0d6e300550411.tar.gz deluge-39d19b5afd4d5653f81ea1b55aa0d6e300550411.tar.bz2 deluge-39d19b5afd4d5653f81ea1b55aa0d6e300550411.zip |
web: ensure torrent keys are always str
Make sure that we aren't sending unicode strings as keys, always
map them with str.
-rw-r--r-- | deluge/ui/web/json_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index ae4d4724f..042433d0e 100644 --- a/deluge/ui/web/json_api.py +++ b/deluge/ui/web/json_api.py @@ -614,7 +614,7 @@ class WebApi(JSONComponent): @export def get_torrent_status(self, torrent_id, keys): - return component.get("SessionProxy").get_torrent_status(torrent_id, keys) + return component.get("SessionProxy").get_torrent_status(torrent_id, map(str, keys)) @export def get_torrent_files(self, torrent_id): |