Skip to content

Commit

Permalink
fix user tests
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Oct 19, 2024
1 parent 099af55 commit 3e40016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nicegui/nicegui.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async def _on_handshake(sid: str, data: Dict[str, str]) -> bool:
client = Client.instances.get(data['client_id'])
if not client:
return False
if data['old_tab_id']:
if data.get('old_tab_id'):
app.storage.copy_tab(data['old_tab_id'], data['tab_id'])
client.tab_id = data['tab_id']
if sid[:5].startswith('test-'):
Expand Down

0 comments on commit 3e40016

Please sign in to comment.