Some errors during development hang Gramps. Putting all in try block to avoid this
svn: r22420
This commit is contained in:
parent
25c5e6fbc8
commit
2b5d7efdce
@ -300,6 +300,7 @@ def __startgramps(errors, argparser):
|
|||||||
Main startup function started via GObject.timeout_add
|
Main startup function started via GObject.timeout_add
|
||||||
First action inside the gtk loop
|
First action inside the gtk loop
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
from .dialog import ErrorDialog
|
from .dialog import ErrorDialog
|
||||||
#handle first existing errors in GUI fashion
|
#handle first existing errors in GUI fashion
|
||||||
if errors:
|
if errors:
|
||||||
@ -330,6 +331,19 @@ def __startgramps(errors, argparser):
|
|||||||
l.addHandler(rh)
|
l.addHandler(rh)
|
||||||
l.addHandler(gtkh)
|
l.addHandler(gtkh)
|
||||||
|
|
||||||
|
except:
|
||||||
|
#make sure there is a clean exit if there is an error in above steps
|
||||||
|
quit_now = True
|
||||||
|
exit_code = 1
|
||||||
|
LOG.error(_(
|
||||||
|
"\nGramps failed to start. Please report a bug about this.\n"
|
||||||
|
"This could be because of an error in a (third party) View on startup.\n"
|
||||||
|
"To use another view, don't load a Family Tree, change view, and then load"
|
||||||
|
" your Family Tree.\n"
|
||||||
|
"You can also change manually the startup view in the gramps.ini file \n"
|
||||||
|
"by changing the last-view parameter.\n"
|
||||||
|
), exc_info=True)
|
||||||
|
|
||||||
# start GRAMPS, errors stop the gtk loop
|
# start GRAMPS, errors stop the gtk loop
|
||||||
try:
|
try:
|
||||||
quit_now = False
|
quit_now = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user