Skip to content

Commit

Permalink
docs: skip non-files rather than exiting
Browse files Browse the repository at this point in the history
Don't terminate all processing when we find a directory.

Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
kuba-moo committed Nov 11, 2024
1 parent 9ad00d3 commit 50048c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def main():
dr = DocRefs()
for file in os.listdir(os.path.join(sys.argv[1], 'Documentation', 'process')):
if not os.path.isfile(os.path.join(sys.argv[1], 'Documentation', 'process', file)):
return
continue
name = file[:-4]
dr.load_section('process/' + name, name)
if len(sys.argv) > 2:
Expand Down

0 comments on commit 50048c0

Please sign in to comment.