From afc058c4a34215fa06e14057528337b2affcdafa Mon Sep 17 00:00:00 2001 From: StanFromIreland Date: Sat, 21 Dec 2024 17:30:46 +0000 Subject: [PATCH] Fix clinic empty line error --- Tools/clinic/libclinic/cpp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/clinic/libclinic/cpp.py b/Tools/clinic/libclinic/cpp.py index e115d65a88e1b6..18a8031d7aa0e1 100644 --- a/Tools/clinic/libclinic/cpp.py +++ b/Tools/clinic/libclinic/cpp.py @@ -136,7 +136,8 @@ def pop_stack() -> TokenAndCondition: return line = line[1:].lstrip() - assert line + if not line: + return fields = line.split() token = fields[0].lower()