From 39d19b5afd4d5653f81ea1b55aa0d6e300550411 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 5 Oct 2011 01:26:11 +0100 Subject: [PATCH] web: ensure torrent keys are always str Make sure that we aren't sending unicode strings as keys, always map them with str. --- deluge/ui/web/json_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):