Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Commit f3c636e

Browse files
philipdp123samuelhwilliams
authored andcommitted
Fix WebSocket import error for Python 3.12 compatibility
1 parent a589ad0 commit f3c636e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

eel/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
import gevent as gvt
1414
import json as jsn
1515
import bottle as btl
16-
import bottle.ext.websocket as wbs
16+
try:
17+
import bottle_websocket as wbs
18+
except ImportError:
19+
import bottle.ext.websocket as wbs
1720
import re as rgx
1821
import os
1922
import eel.browsers as brw

0 commit comments

Comments
 (0)