From 86ed13eb7bb721da8e41a2b64fe23e45e509ea52 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Fri, 9 Jun 2023 03:34:59 +0800 Subject: [PATCH] fix db context bug --- chassis/db_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chassis/db_context.py b/chassis/db_context.py index 5ca122a..06569bc 100644 --- a/chassis/db_context.py +++ b/chassis/db_context.py @@ -7,7 +7,7 @@ from chassis.consts import const engines = {} -def init_engine(config_item): +def init_engine(config_item=None): if config_item: databases = config_item[const.DB_CONFIG_ITEM] else: