code cleanup
This commit is contained in:
@@ -107,7 +107,7 @@ async def work_with_db(db_func: str, data_turple: tuple):
|
||||
connect.commit()
|
||||
cursor.close()
|
||||
except sqlite3.Error as _error:
|
||||
logger.error(_error)
|
||||
logger.critical(_error)
|
||||
|
||||
|
||||
async def fill_bd(name: str, userid: int, isbot: bool, nick: str, guild: int):
|
||||
@@ -133,4 +133,4 @@ async def read_db(guild: int, user: int, column: str):
|
||||
record = cursor.fetchone()
|
||||
return record[_col_dict[column]]
|
||||
except sqlite3.Error as _error:
|
||||
pass
|
||||
logger.critical(_error)
|
||||
|
||||
Reference in New Issue
Block a user