fix termination problem with CLI operations
svn: r9280
This commit is contained in:
parent
51159df14e
commit
7a3316e492
@ -1,3 +1,8 @@
|
||||
2007-10-31 Jim Sack <jgsack@san.rr.com>
|
||||
* src/Gramps.py In run(), skip error-dialog for things like
|
||||
exit(0) such as used when processing command-line operations.
|
||||
Add missing gtk.main_quit needed to terminate process
|
||||
|
||||
2007-10-29 Gary Burton <gary.burton@zen.co.uk>
|
||||
* src/RelLib/_Person.py: setting the death index wrongly.
|
||||
|
||||
|
@ -170,9 +170,14 @@ def run():
|
||||
|
||||
try:
|
||||
gramps_main.Gramps(args)
|
||||
except SystemExit, msg:
|
||||
log.error("Gramps terminated with the following message:\n %s."
|
||||
% msg, exc_info=True)
|
||||
except SystemExit, err:
|
||||
# err.message may be numeric=0 or string="" or None or False
|
||||
# or (), or [], .. , all of which are non-error conditions
|
||||
# which need no error logging/dialog here (lower-level, maybe)
|
||||
if err and err.message:
|
||||
log.error("Gramps terminated with the following message:\n %r."
|
||||
% err.message, exc_info=True)
|
||||
gtk.main_quit()
|
||||
except:
|
||||
log.error("Gramps failed to start.", exc_info=True)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user