Skip to content

Commit

Permalink
DI-2029: Explicitely close connection
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalezzfelipe committed Nov 9, 2021
1 parent dca395e commit d640ae4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions migratron/command/run_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ 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")
Expand Down

0 comments on commit d640ae4

Please sign in to comment.