error handling in the open function

This commit is contained in:
2026-01-18 07:15:58 +11:00
parent aa5ba33d9c
commit 2e02a0f19b

View File

@@ -90,7 +90,12 @@ class AppUI(App):
def callback(path: str):
if path == None: return
self.project = Project.from_file(path)
try:
self.project = Project.from_file(path)
except Exception as e:
self.notify(str(e), title="Failed to open project", severity="error")
return
self.open_project_path = path
### load all the ui elements