From 24c100d9b70fe51ddf3ea3304b57a284a9065e63 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 27 Jun 2018 14:37:46 +0100 Subject: [PATCH] [Py3] Decode new_release version to unicode string --- deluge/core/core.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deluge/core/core.py b/deluge/core/core.py index 1a3d164a4..ade2d93e9 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -359,11 +359,13 @@ class Core(component.Component): def get_new_release(self): log.debug('get_new_release') try: - self.new_release = urlopen('http://download.deluge-torrent.org/version-2.0').read().strip() + self.new_release = urlopen( + 'http://download.deluge-torrent.org/version-2.0' + ).read().decode().strip() except URLError as ex: log.debug('Unable to get release info from website: %s', ex) - return - self.check_new_release() + else: + self.check_new_release() def check_new_release(self): if self.new_release: