Skip to content

Commit

Permalink
🐛 fix(alembic): incorrect change in 19aab8b
Browse files Browse the repository at this point in the history
fix #12
  • Loading branch information
ProgramRipper committed Feb 17, 2024
1 parent ef116c4 commit acb105a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nonebot_plugin_orm/templates/multidb/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import asyncio
from typing import cast
from contextlib import suppress

from alembic import context
from sqlalchemy.util import await_only
Expand Down Expand Up @@ -127,7 +126,7 @@ async def run_migrations_online() -> None:
else:
coro = run_migrations_online()

with suppress(RuntimeError):
try:
asyncio.run(coro)

await_only(coro)
except RuntimeError:
await_only(coro)

0 comments on commit acb105a

Please sign in to comment.