Remove unnecessary class

This commit is contained in:
Panoramic 2024-06-11 11:18:34 +03:00
parent ffcc7e4685
commit db164c15b0
Signed by: Panoramic
GPG Key ID: 29FEDD73E66D32F1
2 changed files with 1 additions and 4 deletions

View File

@ -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__)

View File

@ -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): ...