mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Gracefully handle no network connection in update.py.
This commit is contained in:
parent
14ea39b353
commit
4f663d0229
1 changed files with 6 additions and 1 deletions
|
@ -6,7 +6,12 @@ import sys
|
||||||
|
|
||||||
import __init__
|
import __init__
|
||||||
|
|
||||||
new_release = urllib.urlopen("http://download.deluge-torrent.org/version").read().strip()
|
try:
|
||||||
|
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"
|
||||||
|
new_release = ""
|
||||||
|
|
||||||
if new_release > sys.argv[1]:
|
if new_release > sys.argv[1]:
|
||||||
import gtk
|
import gtk
|
||||||
import pygtk
|
import pygtk
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue