forked from PaddlePaddle/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a mod's __file__ is None. (PaddlePaddle#4043)
* a mod's __file__ is None. ``` Traceback (most recent call last): File "./gen_doc.py", line 1270, in <module> set_source_code_attrs() File "./gen_doc.py", line 180, in set_source_code_attrs parse_module_file(obj) File "./gen_doc.py", line 234, in parse_module_file if os.path.splitext(src_file)[1].lower() == '.py': File "/usr/lib/python3.8/posixpath.py", line 118, in splitext p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType ``` * skip the mod when its __file__ is None * if statement wrong * hasattr raise an expection
- Loading branch information
Showing
1 changed file
with
23 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters