Skip to content

Commit b5f30c5

Browse files
committed
squash 125
1 parent aa637d8 commit b5f30c5

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

app/db/db_init.py

+5-13
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,12 @@ async def init_db() -> None:
3333
# call to "run_sync" will not create anything.
3434
import app.db.models # noqa
3535

36-
try:
37-
# These methods are copy/paste due to globals.
38-
await create_write_engine()
39-
await create_read_engine()
40-
except:
41-
logger.exception('Uncaught exception during ENP database initialization')
42-
raise
36+
# These methods are copy/paste due to globals.
37+
await create_write_engine()
38+
await create_read_engine()
4339

44-
try:
45-
# notification_api database connections
46-
await init_napi_metadata()
47-
except:
48-
logger.exception('Uncaught exception during NAPI database metadata initialization')
49-
raise
40+
# notification_api database connections
41+
await init_napi_metadata()
5042

5143
logger.info('...database engines initialized.')
5244

0 commit comments

Comments
 (0)