Skip to content

Commit

Permalink
fix error imformation when trigger import error (#32702)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyuwenyu authored May 6, 2021
1 parent c0f2668 commit 43b3e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/paddle/hapi/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 43b3e99

Please sign in to comment.