repl: Fix unclosed connection warning
@@ -515,6 +515,7 @@ def execute_script(conn_args, data):
else:
raise
+ try:
queries = lexutils.split_edgeql(data)[0]
ctx = context.ReplContext()
for query in queries:
@@ -531,6 +532,8 @@ def execute_script(conn_args, data):
ctx,
ret,
max_width=80)
+ finally:
+ con.close()
def _data_in_stdin():
