We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34312ee commit 061693fCopy full SHA for 061693f
nicegui/storage.py
@@ -165,8 +165,9 @@ async def _create_tab_storage(self, tab_id: str) -> None:
165
if tab_id not in self._tabs:
166
if Storage.redis_url:
167
self._tabs[tab_id] = Storage._create_persistent_dict(f'tab-{tab_id}')
168
- assert isinstance(self._tabs[tab_id], PersistentDict)
169
- await self._tabs[tab_id].initialize()
+ tab = self._tabs[tab_id]
+ if isinstance(tab, PersistentDict):
170
+ await tab.initialize()
171
else:
172
self._tabs[tab_id] = ObservableDict()
173
0 commit comments