try ssl socket error for macos
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import json
|
||||
import logging
|
||||
import platform
|
||||
import ssl
|
||||
|
||||
import websocket
|
||||
from PyQt6 import QtCore
|
||||
@@ -69,6 +71,9 @@ class Listener(QtCore.QThread):
|
||||
def run(self):
|
||||
self.running = True
|
||||
try:
|
||||
if platform.system() == "Darwin":
|
||||
self.ws.run_forever(sslopt={ssl.CERT_NONE})
|
||||
else:
|
||||
self.ws.run_forever()
|
||||
finally:
|
||||
logger.debug("Listener: stopped.")
|
||||
|
||||
Reference in New Issue
Block a user