CLI: if database is opened at end, then close it
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user