From 3591a2528038b17b90390ea7bdb8c0e5eabee7d9 Mon Sep 17 00:00:00 2001 From: Sing_chan <51314274+betterpig@users.noreply.github.com> Date: Mon, 30 May 2022 14:16:01 +0800 Subject: [PATCH] cant just exit, because the new api has no doc in develop;test=document_fix (#43083) --- tools/sampcd_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sampcd_processor.py b/tools/sampcd_processor.py index 13005350d7b..1bd9f029d55 100644 --- a/tools/sampcd_processor.py +++ b/tools/sampcd_processor.py @@ -342,7 +342,7 @@ Please use '.. code-block:: python' to format the sample code.""") logger.error( "Error: No sample code found! Please check if the API comment contais string 'Examples:' correctly" ) - exit(1) + return [] sample_code_filenames = [] for y, cb in enumerate(codeblocks): -- GitLab