diff --git a/dzgui/model/model_factory.py b/dzgui/model/model_factory.py index c0b87f3..ed1ccdc 100644 --- a/dzgui/model/model_factory.py +++ b/dzgui/model/model_factory.py @@ -95,6 +95,8 @@ class FastInsertListStore(ListStore): expected_types = [ GTYPE_TO_PYTHON[self.get_column_type(i)] for i in range(n_cols) ] + if len(rows) == 0: + return if not self._is_same_length(rows): raise ValueError("Sublists are not of uniform length") if not self._is_type_homogeneous(rows):