BeremizIDE.py
changeset 3909 c29a95aebfbf
parent 3906 f831ff63ca6e
equal deleted inserted replaced
3907:394c130196b0 3909:c29a95aebfbf
   978 
   978 
   979     def OnAboutMenu(self, event):
   979     def OnAboutMenu(self, event):
   980         info = wx.adv.AboutDialogInfo()
   980         info = wx.adv.AboutDialogInfo()
   981         info = version.GetAboutDialogInfo(info)
   981         info = version.GetAboutDialogInfo(info)
   982         info.Name = "Beremiz"
   982         info.Name = "Beremiz"
   983         with open(ThirdPartyPath("revisions.txt")) as f:
   983         try:
   984             revisions=f.read()
   984             with open(ThirdPartyPath("revisions.txt")) as f:
       
   985                 revisions=f.read()
       
   986         except Exception as e:
       
   987             revisions="Can't load revisions.txt: "+str(e)
       
   988         finally:
   985             info.SetVersion(info.GetVersion(), longVersion=revisions)
   989             info.SetVersion(info.GetVersion(), longVersion=revisions)
   986 
   990 
   987         info.Description = _("Open Source framework for automation, "
   991         info.Description = _("Open Source framework for automation, "
   988             "implementing IEC 61131 IDE with constantly growing set of extensions "
   992             "implementing IEC 61131 IDE with constantly growing set of extensions "
   989             "and flexible PLC runtime.")
   993             "and flexible PLC runtime.")