mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +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):
|
def new_release_check(self):
|
||||||
import socket
|
import socket
|
||||||
import urllib2
|
import urllib
|
||||||
timeout = 5
|
timeout = 5
|
||||||
socket.setdefaulttimeout(timeout)
|
socket.setdefaulttimeout(timeout)
|
||||||
try:
|
try:
|
||||||
|
@ -1074,8 +1074,7 @@ window, please enter your password"))
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
req = urllib2.Request("http://download.deluge-torrent.org/version")
|
new_release = urllib.urlopen("http://download.deluge-torrent.org/version").read().strip()
|
||||||
new_release = urllib2.urlopen(req).read().strip()
|
|
||||||
except IOError:
|
except IOError:
|
||||||
print "Network error while trying to check for a newer version of \
|
print "Network error while trying to check for a newer version of \
|
||||||
Deluge"
|
Deluge"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue