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

11
run.py
View file

@ -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.