Skip to content

Commit 43b3e99

Browse files
authored
fix error imformation when trigger import error (#32702)
1 parent c0f2668 commit 43b3e99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/paddle/hapi/hub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def _import_module(name, repo_dir):
4343
except ImportError:
4444
sys.path.remove(repo_dir)
4545
raise RuntimeError(
46-
'Cannot import `{}`, please make sure `{}`.py in repo root dir'.
47-
format(name, name))
46+
'Please make sure config exists or repo error messages above fixed when importing'
47+
)
4848

4949
sys.path.remove(repo_dir)
5050

0 commit comments

Comments
 (0)