Skip to content

Commit ffce34d

Browse files
committed
fix: document_symbols throws exception if section name is empty
1 parent 222e89c commit ffce34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/language_server/src/robotcode/language_server/robotframework/parts/document_symbols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def visit_Section(self, node: ast.AST) -> None: # noqa: N802
5757
return
5858

5959
header = cast(SectionHeader, section.header)
60-
if header.name is None:
60+
if not header.name:
6161
return
6262

6363
r = range_from_node(section)

0 commit comments

Comments
 (0)