summaryrefslogtreecommitdiffstats
path: root/deluge/ui/common.py
diff options
context:
space:
mode:
authorbendikro <bro.devel@gmail.com>2016-10-19 10:09:22 +0200
committerbendikro <bro.devel@gmail.com>2016-10-19 10:47:41 +0200
commit37baf3de3c826a5cfa08fe06e8f21a2ffa230c21 (patch)
treea43d29177b47401c8e18f633070be9625213c170 /deluge/ui/common.py
parentcfdddc4469144e3fffd04ab68577a71aad44921a (diff)
downloaddeluge-37baf3de3c826a5cfa08fe06e8f21a2ffa230c21.tar.gz
deluge-37baf3de3c826a5cfa08fe06e8f21a2ffa230c21.tar.bz2
deluge-37baf3de3c826a5cfa08fe06e8f21a2ffa230c21.zip
[#2875][Web] Fix: WebUI Json dumps Error
Diffstat (limited to 'deluge/ui/common.py')
-rw-r--r--deluge/ui/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/deluge/ui/common.py b/deluge/ui/common.py
index 0ed96b80c..94e531d2d 100644
--- a/deluge/ui/common.py
+++ b/deluge/ui/common.py
@@ -117,6 +117,8 @@ class TorrentInfo(object):
f["sha1"] = f["sha1"].encode('hex')
if "ed2k" in f and len(f["ed2k"]) == 16:
f["ed2k"] = f["ed2k"].encode('hex')
+ if "filehash" in f and len(f["filehash"]) == 20:
+ f["filehash"] = f["filehash"].encode('hex')
paths[path] = f
dirname = os.path.dirname(path)
while dirname: