Beremiz.py
changeset 1780 c52d1460cea8
parent 1752 d14ff9d7eb76
child 1790 47fc06c13b37
equal deleted inserted replaced
1779:6cf16e5bfbf9 1780:c52d1460cea8
   159             def updateinfoproc():
   159             def updateinfoproc():
   160                 global updateinfo
   160                 global updateinfo
   161                 try:
   161                 try:
   162                     import urllib2
   162                     import urllib2
   163                     updateinfo = urllib2.urlopen(self.updateinfo_url, None).read()
   163                     updateinfo = urllib2.urlopen(self.updateinfo_url, None).read()
   164                 except:
   164                 except Exception:
   165                     updateinfo = _("update info unavailable.")
   165                     updateinfo = _("update info unavailable.")
   166 
   166 
   167             from threading import Thread
   167             from threading import Thread
   168             self.splash.SetText(text=updateinfo)
   168             self.splash.SetText(text=updateinfo)
   169             updateinfoThread = Thread(target=updateinfoproc)
   169             updateinfoThread = Thread(target=updateinfoproc)