From 6a4693f9476a268205a414065451615c00fcc822 Mon Sep 17 00:00:00 2001 From: Felipe Gonzalez Date: Tue, 9 Nov 2021 14:05:57 -0300 Subject: [PATCH] DI-2029: Dont explicitely close connection --- migratron/command/run_migration.py | 1 - 1 file changed, 1 deletion(-) diff --git a/migratron/command/run_migration.py b/migratron/command/run_migration.py index adf7d6a..e02337e 100644 --- a/migratron/command/run_migration.py +++ b/migratron/command/run_migration.py @@ -247,7 +247,6 @@ def _execute_filename(self, file_content, complete_filename): cursor.fetchall() # Force non async execution except ResourceClosedError: pass - conn.close() command = None else: raise ValueError("Invalid database type")