fix: throw no exception if print before finalize

This commit is contained in:
relikd
2022-10-25 01:21:57 +02:00
parent 3e60e536f5
commit 7c98d74875

View File

@@ -150,7 +150,8 @@ class GroupBySource(VirtualSourceObject):
def __repr__(self) -> str: def __repr__(self) -> str:
return '<GroupBySource path="{}" children={}>'.format( return '<GroupBySource path="{}" children={}>'.format(
self.path, self.children.count()) self.path,
self.children.count() if hasattr(self, 'children') else '?')
# ----------------------------------- # -----------------------------------