- busy = wx.BusyInfo(_("Please wait..."), self.parent)
- wx.SafeYield()
- OpenAnalyse(self.parent, pydata)
- del busy
- self.SetItemBold(item, True)
- self.OnSelChanged(pydata = pydata)
+ if os.path.exists(pydata['ira']) :
+ busy = wx.BusyInfo(_("Please wait..."), self.parent)
+ wx.SafeYield()
+ try :
+ OpenAnalyse(self.parent, pydata)
+ del busy
+ self.SetItemBold(item, True)
+ self.OnSelChanged(pydata = pydata)
+ except :
+ del busy
+ BugReport(self.ira)
+ else :
+ wx.MessageBox(_(u"This file does not exist : %s" % pydata['ira']).decode('utf8'), 'Information', wx.ICON_EXCLAMATION | wx.STAY_ON_TOP )