Remove unnecessary class
This commit is contained in:
parent
ffcc7e4685
commit
db164c15b0
|
@ -13,7 +13,7 @@ from nio import (
|
||||||
|
|
||||||
from vetting_bot.chat_functions import react_to_event, send_text_to_room
|
from vetting_bot.chat_functions import react_to_event, send_text_to_room
|
||||||
from vetting_bot.config import Config
|
from vetting_bot.config import Config
|
||||||
from vetting_bot.storage import Storage, IntegrityError
|
from vetting_bot.storage import Storage
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -133,6 +133,3 @@ class Storage:
|
||||||
self.cursor.execute(args[0].replace("?", "%s"), *args[1:])
|
self.cursor.execute(args[0].replace("?", "%s"), *args[1:])
|
||||||
else:
|
else:
|
||||||
self.cursor.execute(*args)
|
self.cursor.execute(*args)
|
||||||
|
|
||||||
|
|
||||||
class IntegrityError(psycopg2.IntegrityError, sqlite3.IntegrityError): ...
|
|
||||||
|
|
Loading…
Reference in New Issue