Skip to content

Commit 7814b32

Browse files
Allow missing descriptions. (#3413)
1 parent 178704d commit 7814b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.generator/src/generator/formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def is_primitive(schema):
7575

7676

7777
def block_comment(comment, prefix="#", first_line=True):
78-
lines = comment.split("\n")
78+
lines = (comment or "").split("\n")
7979
start = "" if first_line else lines[0] + "\n"
8080
return (start + "\n".join(f"{prefix} {line}".rstrip() for line in lines[(0 if first_line else 1) :])).rstrip()
8181

0 commit comments

Comments
 (0)