diff --git a/lektor_groupby/vobj.py b/lektor_groupby/vobj.py index 51019d9..1fc9697 100644 --- a/lektor_groupby/vobj.py +++ b/lektor_groupby/vobj.py @@ -150,7 +150,8 @@ class GroupBySource(VirtualSourceObject): def __repr__(self) -> str: return ''.format( - self.path, self.children.count()) + self.path, + self.children.count() if hasattr(self, 'children') else '?') # -----------------------------------