mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-23 17:59:17 +00:00
[Py3] Decode new_release version to unicode string
This commit is contained in:
parent
9bc2f62c80
commit
24c100d9b7
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user