BeremizIDE.py
changeset 3909 c29a95aebfbf
parent 3906 f831ff63ca6e
--- a/BeremizIDE.py	Thu Mar 07 21:19:45 2024 +0100
+++ b/BeremizIDE.py	Thu Mar 07 21:50:33 2024 +0100
@@ -980,8 +980,12 @@
         info = wx.adv.AboutDialogInfo()
         info = version.GetAboutDialogInfo(info)
         info.Name = "Beremiz"
-        with open(ThirdPartyPath("revisions.txt")) as f:
-            revisions=f.read()
+        try:
+            with open(ThirdPartyPath("revisions.txt")) as f:
+                revisions=f.read()
+        except Exception as e:
+            revisions="Can't load revisions.txt: "+str(e)
+        finally:
             info.SetVersion(info.GetVersion(), longVersion=revisions)
 
         info.Description = _("Open Source framework for automation, "