From db164c15b001929b3b0f0085f9aade24d6ed2db2 Mon Sep 17 00:00:00 2001 From: Panoramic Date: Tue, 11 Jun 2024 11:18:34 +0300 Subject: [PATCH] Remove unnecessary class --- vetting_bot/bot_commands.py | 2 +- vetting_bot/storage.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/vetting_bot/bot_commands.py b/vetting_bot/bot_commands.py index cf00b84..51818f8 100644 --- a/vetting_bot/bot_commands.py +++ b/vetting_bot/bot_commands.py @@ -13,7 +13,7 @@ from nio import ( from vetting_bot.chat_functions import react_to_event, send_text_to_room from vetting_bot.config import Config -from vetting_bot.storage import Storage, IntegrityError +from vetting_bot.storage import Storage logger = logging.getLogger(__name__) diff --git a/vetting_bot/storage.py b/vetting_bot/storage.py index 819ab25..cbb3993 100644 --- a/vetting_bot/storage.py +++ b/vetting_bot/storage.py @@ -133,6 +133,3 @@ class Storage: self.cursor.execute(args[0].replace("?", "%s"), *args[1:]) else: self.cursor.execute(*args) - - -class IntegrityError(psycopg2.IntegrityError, sqlite3.IntegrityError): ...