Skip to content

Commit 50048c0

Browse files
committed
docs: skip non-files rather than exiting
Don't terminate all processing when we find a directory. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 9ad00d3 commit 50048c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def main():
247247
dr = DocRefs()
248248
for file in os.listdir(os.path.join(sys.argv[1], 'Documentation', 'process')):
249249
if not os.path.isfile(os.path.join(sys.argv[1], 'Documentation', 'process', file)):
250-
return
250+
continue
251251
name = file[:-4]
252252
dr.load_section('process/' + name, name)
253253
if len(sys.argv) > 2:

0 commit comments

Comments
 (0)