Skip to content

Commit 3fd2509

Browse files
committed
don't use endswith on possible None
1 parent 63a0f33 commit 3fd2509

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎paths_cli/compiling/core.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ def __init__(self, builder, parameters, name=None, aliases=None,
169169

170170
@property
171171
def schema_name(self):
172-
if not self.name.endswith(self.category):
172+
# TODO: not exactly clear what the schema name should be if category
173+
# is None -- don't think it actually exists in that case
174+
if self.category and not self.name.endswith(self.category):
173175
schema_name = f"{self.name}-{self.category}"
174176
else:
175177
schema_name = self.name

0 commit comments

Comments
 (0)