Implementing Error Catching System
This commit is contained in:
parent
b71b55c7e0
commit
5daae0e0fd
1 changed files with 10 additions and 1 deletions
9
run.py
9
run.py
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue