From 3247e6fb8277299f321c8715998e494e878f12f8 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Wed, 5 Jun 2024 00:59:33 -0400 Subject: [PATCH] fix(aurora): lmao i'm dumb --- aurora/importers/aurora.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aurora/importers/aurora.py b/aurora/importers/aurora.py index 468eb25..b7edc71 100644 --- a/aurora/importers/aurora.py +++ b/aurora/importers/aurora.py @@ -33,7 +33,6 @@ class ImportAuroraView(ui.View): query = f"DROP TABLE IF EXISTS moderation_{self.ctx.guild.id};" database.execute(query) database.commit() - database.close() await interaction.edit_original_response(content="Creating new table...") @@ -118,6 +117,9 @@ class ImportAuroraView(ui.View): except Exception as e: # pylint: disable=broad-exception-caught failed_cases.append(str(case["moderation_id"]) + f": {e}") + await database.commit() + await database.close() + await interaction.edit_original_response(content="Import complete.") if failed_cases: filename = (