From 5daae0e0fd1c29d45ce7f38c3d8cb5d6875bccb2 Mon Sep 17 00:00:00 2001 From: "Jeison Yehuda Amihud (Blender Dumbass)" Date: Mon, 10 May 2021 19:59:14 +0000 Subject: [PATCH] Implementing Error Catching System --- run.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index efdc76a..2cc8458 100644 --- a/run.py +++ b/run.py @@ -16,6 +16,7 @@ # # #################################### + import sys import subprocess @@ -26,6 +27,7 @@ import subprocess # We probably need the following modules. from settings import settings from settings import talk +from troubleshooter import error_notify # Before we launch anything let's troubleshoot the bastard if not settings.read("VCStudio-is-good")\ @@ -94,6 +96,13 @@ if len(sys.argv) > 1: else: from project_manager import pm_gtk - pm_gtk.run() + + # Some errors could happen while the program is running. Some things to + # notify the user should be implemented. + + try: + pm_gtk.run() + except: + error_notify.show() # Yeah. Now it looks better.