Skip to content

Commit

Permalink
fix error imformation when trigger import error
Browse files Browse the repository at this point in the history
  • Loading branch information
lyuwenyu committed Apr 30, 2021
1 parent 1a417a4 commit 2d278ca
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

1 comment on commit 2d278ca

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.