CLI: if database is opened at end, then close it

This commit is contained in:
Doug Blank 2016-01-05 13:01:48 -05:00
parent d44673c260
commit 27e79a3e76

View File

@ -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)