From dd6867b21ebaaa20df7aee28e5880d9531b5969d Mon Sep 17 00:00:00 2001 From: Chris Doyle Date: Fri, 29 Nov 2024 09:28:35 +0000 Subject: [PATCH] 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. Signed-off-by: Chris Doyle --- chaosreport/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaosreport/__init__.py b/chaosreport/__init__.py index 22699f6..6cc5c94 100644 --- a/chaosreport/__init__.py +++ b/chaosreport/__init__.py @@ -310,7 +310,7 @@ def save_report( extra_args = [] pandoc_version = pypandoc.get_pandoc_version() - major, minor, _ = pandoc_version.split(".", 2) + major, minor = pandoc_version.split(".")[0:2] if int(major) == 2 and int(minor) < 19: extra_args.append("--self-contained") else: