parent
bb1d59a29d
commit
0340337107
@ -382,7 +382,7 @@ class ArgHandler:
|
|||||||
self.open = db_path
|
self.open = db_path
|
||||||
self.__open_action()
|
self.__open_action()
|
||||||
else:
|
else:
|
||||||
sys.exit(1)
|
sys.exit(_("Error: cannot open '%s'") % self.open_gui)
|
||||||
return db_path
|
return db_path
|
||||||
|
|
||||||
# if not open_gui, parse any command line args. We can only have one
|
# if not open_gui, parse any command line args. We can only have one
|
||||||
|
@ -369,8 +369,11 @@ def __startgramps(errors, argparser):
|
|||||||
quit_now = True
|
quit_now = True
|
||||||
if err.code:
|
if err.code:
|
||||||
exit_code = err.code
|
exit_code = err.code
|
||||||
LOG.error("Gramps terminated with exit code: %d.", err.code,
|
if isinstance(err.code, str):
|
||||||
exc_info=True)
|
LOG.error(err.code, exc_info=False)
|
||||||
|
else:
|
||||||
|
LOG.error("Gramps terminated with exit code: %d.", err.code,
|
||||||
|
exc_info=False)
|
||||||
except OSError as err:
|
except OSError as err:
|
||||||
quit_now = True
|
quit_now = True
|
||||||
exit_code = err.errno or 1
|
exit_code = err.errno or 1
|
||||||
|
Loading…
Reference in New Issue
Block a user