From ef90c95366dd04cdde79f3214b9dad8e07ae1397 Mon Sep 17 00:00:00 2001 From: MichaelKora Date: Fri, 26 Jan 2024 13:58:28 +0100 Subject: [PATCH] Test 3.3 --- .github/generate-doc.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/generate-doc.py b/.github/generate-doc.py index 1fc13bad4..b16fd89b6 100644 --- a/.github/generate-doc.py +++ b/.github/generate-doc.py @@ -125,8 +125,11 @@ def print_colored(text, color): class DocGenerationError(Exception): def __init__(self, count, inconsistencies): - self.message = f"Error: The documentation is not up to date. {count} inconsistency(ies) where found. Re running pre-commit may help. Inconstencies:{inconsistencies}" - super().__init__(f"{Colors.RED}{self.message}{Colors.RESET}") + inconsistencies_str = f"Error: The documentation is not up to date. {count} inconsistency(ies) where found. Re running pre-commit may help. Inconstencies:\n" + for i in inconsistencies: + inconsistencies_str += f"{i}\n" + # self.message = inconsistencies_str + super().__init__(f"{Colors.RED}{inconsistencies_str}{Colors.RESET}") # for i in inconsistencies: # print_colored(i, Colors.YELLOW)