未验证 提交 10c493a8 编写于 作者: W Wenyu 提交者: GitHub

fix error imformation when trigger import error (#32616)

上级 b6ca6a55
......@@ -43,8 +43,8 @@ def _import_module(name, repo_dir):
except ImportError:
sys.path.remove(repo_dir)
raise RuntimeError(
'Cannot import `{}`, please make sure `{}`.py in repo root dir'.
format(name, name))
'Please make sure config exists or repo error messages above fixed when importing'
)
sys.path.remove(repo_dir)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册