diff --git a/libs/custom/utorrent/client.py b/libs/custom/utorrent/client.py index f5eaf93b..ac1a9beb 100644 --- a/libs/custom/utorrent/client.py +++ b/libs/custom/utorrent/client.py @@ -59,7 +59,7 @@ class UTorrentClient(object): url = urljoin(self.base_url, 'token.html') response = self.opener.open(url) token_re = "" - match = re.search(token_re, response.read()) + match = re.search(token_re, str(response.read())) return match.group(1) def list(self, **kwargs):