Skip to content

Commit 8ac6ee9

Browse files
authored
fix: changed how we extract major.minor from pandoc semver as they dont always use a full major.minor.patch semver and we just throw away anything after minor anyway. (#50)
Signed-off-by: Chris Doyle <uk.chris.doyle+cdsre@gmail.com>
1 parent bca5e4b commit 8ac6ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chaosreport/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def save_report(
310310
extra_args = []
311311

312312
pandoc_version = pypandoc.get_pandoc_version()
313-
major, minor, _ = pandoc_version.split(".", 2)
313+
major, minor = pandoc_version.split(".")[0:2]
314314
if int(major) == 2 and int(minor) < 19:
315315
extra_args.append("--self-contained")
316316
else:

0 commit comments

Comments
 (0)