We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f661cd6 commit fd06b7aCopy full SHA for fd06b7a
thingsdb/client/protocol.py
@@ -33,7 +33,7 @@
33
from websockets.client import connect # type: ignore
34
from websockets.client import WebSocketClientProtocol # type: ignore
35
from websockets.exceptions import ConnectionClosed # type: ignore
36
-except ImportError:
+except (ImportError, ModuleNotFoundError):
37
websockets = None
38
connect = None
39
0 commit comments