未验证 提交 43b3e99f 编写于 作者: W Wenyu 提交者: GitHub

fix error imformation when trigger import error (#32702)

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