File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,20 @@ def generate(
45
45
) -> None :
46
46
"""Generates markdown documentation for your Python project based on Google-style docstrings."""
47
47
48
- generate_docs (
49
- paths = paths ,
50
- output_path = output_path ,
51
- src_base_url = src_base_url ,
52
- remove_package_prefix = remove_package_prefix ,
53
- ignored_modules = ignored_modules ,
54
- overview_file = overview_file ,
55
- watermark = watermark ,
56
- validate = validate ,
57
- )
48
+ try :
49
+ generate_docs (
50
+ paths = paths ,
51
+ output_path = output_path ,
52
+ src_base_url = src_base_url ,
53
+ remove_package_prefix = remove_package_prefix ,
54
+ ignored_modules = ignored_modules ,
55
+ overview_file = overview_file ,
56
+ watermark = watermark ,
57
+ validate = validate ,
58
+ )
59
+ except Exception as ex :
60
+ typer .echo (str (ex ))
61
+ raise typer .Exit (code = 1 )
58
62
59
63
60
64
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments