Calling DatabaseMapping.fetch_more() after DatabaseMapping.refresh_session() may raise a Traceback.
File "spinedb_api\db_mapping.py", line 627, in fetch_more
return [x.public_item for x in self.do_fetch_more(item_type, limit=limit)]
File "spinedb_api\db_mapping.py", line 627, in <listcomp>
return [x.public_item for x in self.do_fetch_more(item_type, limit=limit)]
AttributeError: 'NoneType' object has no attribute 'public_item'
The Traceback originates from _MappedTable.add_item() that may return None if the items are already cached.
Calling
DatabaseMapping.fetch_more()
afterDatabaseMapping.refresh_session()
may raise a Traceback.The Traceback originates from
_MappedTable.add_item()
that may returnNone
if the items are already cached.