Skip to content

Commit 53dbf4a

Browse files
Fix not in list
1 parent 635ac18 commit 53dbf4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

css_browserhook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ async def _init(self):
2828
self.html_classes = res["classes"]
2929
else:
3030
Log(f"Failed to connect to tab with id {self.id}")
31-
self.hook.connected_tabs.remove(self)
31+
if self in self.hook.connected_tabs:
32+
self.hook.connected_tabs.remove(self)
3233
return
3334

3435
self.init_done = True

0 commit comments

Comments
 (0)