catch RuntimeError from db migrations
This commit is contained in:
parent
cef9345765
commit
1d9c6e0155
1 changed files with 7 additions and 3 deletions
|
@ -221,6 +221,10 @@ async def prefix(ctx, prefix=None):
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
if run_db_migrations(DB_FILE):
|
try:
|
||||||
log.info(f"Migrated DB {DB_FILE}")
|
if run_db_migrations(DB_FILE):
|
||||||
bot.run(TOKEN)
|
log.info(f"Migrated DB {DB_FILE}")
|
||||||
|
except RuntimeError:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
bot.run(TOKEN)
|
||||||
|
|
Loading…
Reference in a new issue