mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 20:14:51 +00:00
tweak new version
This commit is contained in:
parent
02ad4098bc
commit
d647031bee
1 changed files with 2 additions and 3 deletions
|
@ -1066,7 +1066,7 @@ window, please enter your password"))
|
|||
|
||||
def new_release_check(self):
|
||||
import socket
|
||||
import urllib2
|
||||
import urllib
|
||||
timeout = 5
|
||||
socket.setdefaulttimeout(timeout)
|
||||
try:
|
||||
|
@ -1074,8 +1074,7 @@ window, please enter your password"))
|
|||
except:
|
||||
pass
|
||||
try:
|
||||
req = urllib2.Request("http://download.deluge-torrent.org/version")
|
||||
new_release = urllib2.urlopen(req).read().strip()
|
||||
new_release = urllib.urlopen("http://download.deluge-torrent.org/version").read().strip()
|
||||
except IOError:
|
||||
print "Network error while trying to check for a newer version of \
|
||||
Deluge"
|
||||
|
|
Loading…
Add table
Reference in a new issue