mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 06:16:29 +00:00
web: ensure torrent keys are always str
Make sure that we aren't sending unicode strings as keys, always map them with str.
This commit is contained in:
parent
e8506b925f
commit
39d19b5afd
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user