From 0c2431051075ec0285fad0cddf48f7512bfb35b6 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 19 Apr 2018 18:26:59 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E9=94=99=E8=AF=AFstorage=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/backends/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/terminal/backends/__init__.py b/apps/terminal/backends/__init__.py index 33f63f4de..ef1ba56a9 100644 --- a/apps/terminal/backends/__init__.py +++ b/apps/terminal/backends/__init__.py @@ -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