Commit b5f30c5 1 parent aa637d8 commit b5f30c5 Copy full SHA for b5f30c5
File tree 1 file changed +5
-13
lines changed
1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,12 @@ async def init_db() -> None:
33
33
# call to "run_sync" will not create anything.
34
34
import app .db .models # noqa
35
35
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 ()
43
39
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 ()
50
42
51
43
logger .info ('...database engines initialized.' )
52
44
You can’t perform that action at this time.
0 commit comments