it's better like that. after 0.7 I hopefully will pass the socket to main()

This commit is contained in:
Nikos Kouremenos 2005-05-09 17:00:02 +00:00
parent 0bc45e7592
commit df6b4b75b9
1 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,10 @@ GTKGUI_GLADE='gtkgui.glade'
class Check_for_new_version_dialog: class Check_for_new_version_dialog:
def __init__(self, plugin): def __init__(self, plugin):
self.plugin = plugin self.plugin = plugin
self.check_for_new_version() try:
self.check_for_new_version()
except:
pass
def parse_glade(self): def parse_glade(self):
xml = gtk.glade.XML(GTKGUI_GLADE, 'new_version_available_dialog', APP) xml = gtk.glade.XML(GTKGUI_GLADE, 'new_version_available_dialog', APP)
@ -59,10 +62,7 @@ class Check_for_new_version_dialog:
socket.setdefaulttimeout(5) socket.setdefaulttimeout(5)
url = 'http://trac.gajim.org/file/trunk/Changelog?rev=latest&format=txt' url = 'http://trac.gajim.org/file/trunk/Changelog?rev=latest&format=txt'
try: changelog = urllib2.urlopen(url)
changelog = urllib2.urlopen(url)
except:
pass
socket.setdefaulttimeout(dto) socket.setdefaulttimeout(dto)