feat: 例外処理の横展開
This commit is contained in:
parent
73a234462a
commit
81e1fc8abb
@ -10,14 +10,15 @@ def batch_process():
|
||||
|
||||
try:
|
||||
db.connect()
|
||||
|
||||
logger.debug('処理開始')
|
||||
call_v_inst_merge_t_create(db)
|
||||
call_inst_merge_t_create(db)
|
||||
logger.debug('処理終了')
|
||||
except Exception as e:
|
||||
raise BatchOperationException(e)
|
||||
|
||||
logger.info('処理開始')
|
||||
call_v_inst_merge_t_create(db)
|
||||
call_inst_merge_t_create(db)
|
||||
db.disconnect()
|
||||
logger.info('処理終了')
|
||||
finally:
|
||||
db.disconnect()
|
||||
|
||||
|
||||
def call_v_inst_merge_t_create(db: Database):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user