fix(aurora): sqlite3 uses OperationalErrors, not ProgrammingErrors
Some checks failed
Pylint / Pylint (3.11) (push) Failing after 42s
Some checks failed
Pylint / Pylint (3.11) (push) Failing after 42s
This commit is contained in:
parent
4226d0b6fe
commit
3087afa1d2
2 changed files with 4 additions and 4 deletions
|
@ -946,7 +946,7 @@ class Aurora(commands.Cog):
|
|||
try:
|
||||
cursor.execute(tempban_query, (time.time(),))
|
||||
result = cursor.fetchall()
|
||||
except sqlite3.ProgrammingError:
|
||||
except sqlite3.OperationalError:
|
||||
continue
|
||||
|
||||
target_ids = [row[0] for row in result]
|
||||
|
@ -973,7 +973,7 @@ class Aurora(commands.Cog):
|
|||
try:
|
||||
cursor.execute(blacklist_query, (time.time(),))
|
||||
result = cursor.fetchall()
|
||||
except sqlite3.ProgrammingError:
|
||||
except sqlite3.OperationalError:
|
||||
continue
|
||||
target_ids = [row[0] for row in result]
|
||||
moderation_ids = [row[1] for row in result]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue