_datadir is now defined in client.py

This commit is contained in:
BuildTools 2021-04-11 15:16:37 +02:00
parent b8cc380d87
commit 8122133244

View file

@ -25,6 +25,9 @@ import threading
import os
import traceback
import ssl
import ostools
_datadir = ostools.getDataDir()
from oyoyo.parse import *
from oyoyo import helpers
@ -103,7 +106,7 @@ class IRCClient:
self.bare_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.socket = self.context.wrap_socket(self.bare_socket)
except:
#print("TLS except.")
logging.exception('')
self.context = ssl.create_default_context()
self.context.check_hostname = False
self.context.verify_mode = ssl.CERT_NONE