Skip to content

Commit

Permalink
doc: add missing continue if pandoc is not available
Browse files Browse the repository at this point in the history
Without the continue, the run on the next line will call die if pandoc is not
available, thus breaking the fallback for subsequent formats.
  • Loading branch information
behrmann authored and DaanDeMeyer committed Jan 10, 2025
1 parent 5e8c6d6 commit fe188ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mkosi/documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def show_docs(
return
elif form == DocFormat.pandoc:
if not find_binary("pandoc"):
logging.error("pandoc is not available")
logging.warn("pandoc is not available")
continue
pandoc = run(
["pandoc", "-t", "man", "-s", resources / f"man/{manual}.{man_chapter}.md"],
stdout=subprocess.PIPE,
Expand Down

0 comments on commit fe188ce

Please sign in to comment.