CLI: if database is opened at end, then close it
This commit is contained in:
parent
d44673c260
commit
27e79a3e76
@ -367,5 +367,6 @@ def startcli(errors, argparser):
|
||||
# create a manager to manage the database
|
||||
|
||||
handler.handle_args_cli()
|
||||
|
||||
if handler.dbstate.db.is_open():
|
||||
handler.dbstate.db.close()
|
||||
sys.exit(0)
|
||||
|
Loading…
Reference in New Issue
Block a user