From 7c98d74875ddb87087df2507f7b323ae675ebceb Mon Sep 17 00:00:00 2001 From: relikd Date: Tue, 25 Oct 2022 01:21:57 +0200 Subject: [PATCH] fix: throw no exception if print before finalize --- lektor_groupby/vobj.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 '?') # -----------------------------------