catch RuntimeError from db migrations

This commit is contained in:
Infinidoge 2024-12-20 01:13:38 -05:00
parent cef9345765
commit 1d9c6e0155
Signed by: Infinidoge
SSH key fingerprint: SHA256:GT2StvPQMMfFHyiiFJymQxfTG/z6EWLJ6NWItf5K5sA

View file

@ -221,6 +221,10 @@ async def prefix(ctx, prefix=None):
def run(): def run():
try:
if run_db_migrations(DB_FILE): if run_db_migrations(DB_FILE):
log.info(f"Migrated DB {DB_FILE}") log.info(f"Migrated DB {DB_FILE}")
except RuntimeError:
pass
else:
bot.run(TOKEN) bot.run(TOKEN)