Skip to content

Commit 28418c7

Browse files
committed
fix: Handle missing where_clause in IdentifierFromFile
1 parent 20674af commit 28418c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cedarscript_ast_parser/cedarscript_ast_parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def as_marker(self) -> Marker:
137137
return Marker(self.identifier_type, self.name or self.where_clause.value, self.offset)
138138

139139
def __str__(self):
140-
wc = self.where_clause
140+
wc = self.where_clause or ''
141141
if wc:
142142
wc = f' ({wc})'
143143
result = f"{str(self.identifier_type).lower()} {self.name}{wc}"

0 commit comments

Comments
 (0)