提交 90da2658 编写于 作者: S shenyuhan

delete filename in app, modify main.html to get modules from back, raise...

delete filename in app, modify main.html to get modules from back, raise exception when install module unsuccessfully
......@@ -67,7 +67,8 @@ class ServingCommand(BaseCommand):
"category": str(m.type).split("/")[0].upper()
})
except Exception as err:
pass
print(err, ", start Hub-Serving unsuccessfully.")
exit(1)
return configs
@staticmethod
......
......@@ -155,7 +155,8 @@ class Module(object):
module_name=name, module_version=version, extra=extra)
if not result:
logger.error(tips)
exit(1)
raise RuntimeError(tips)
else:
logger.info(tips)
self._init_with_module_file(module_dir[0])
......@@ -165,7 +166,8 @@ class Module(object):
url, save_path=".")
if not result:
logger.error(tips)
exit(1)
raise RuntimeError(tips)
else:
self._init_with_module_file(module_dir)
def _dump_processor(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册