[Bugfix] 修复用户错误storage的bug

pull/1221/head
ibuler 2018-04-19 18:26:59 +08:00
parent 9ac7f26c74
commit 0c24310510
1 changed files with 1 additions and 3 deletions

View File

@ -22,9 +22,7 @@ def get_terminal_command_store():
storage = get_command_store()
else:
if not TYPE_ENGINE_MAPPING.get(tp):
raise AssertionError("Command storage type should in {}".format(
', '.join(TYPE_ENGINE_MAPPING.keys()))
)
continue
engine_class = import_module(TYPE_ENGINE_MAPPING[tp])
storage = engine_class.CommandStore(params)
storage_list[name] = storage