diff --git a/python/paddle/hapi/hub.py b/python/paddle/hapi/hub.py index 6490c878f9b88152ed8df412172d269c4e9e1721..54765c1d4d41cb80c42690909d1bc743f33cbed0 100644 --- a/python/paddle/hapi/hub.py +++ b/python/paddle/hapi/hub.py @@ -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)