Implementing Error Catching System

This commit is contained in:
Jeison Yehuda Amihud (Blender Dumbass) 2021-05-10 19:59:14 +00:00
parent b71b55c7e0
commit 5daae0e0fd

9
run.py
View file

@ -16,6 +16,7 @@
# # # #
#################################### ####################################
import sys import sys
import subprocess import subprocess
@ -26,6 +27,7 @@ import subprocess
# We probably need the following modules. # We probably need the following modules.
from settings import settings from settings import settings
from settings import talk from settings import talk
from troubleshooter import error_notify
# Before we launch anything let's troubleshoot the bastard # Before we launch anything let's troubleshoot the bastard
if not settings.read("VCStudio-is-good")\ if not settings.read("VCStudio-is-good")\
@ -94,6 +96,13 @@ if len(sys.argv) > 1:
else: else:
from project_manager import pm_gtk from project_manager import pm_gtk
# Some errors could happen while the program is running. Some things to
# notify the user should be implemented.
try:
pm_gtk.run() pm_gtk.run()
except:
error_notify.show()
# Yeah. Now it looks better. # Yeah. Now it looks better.