From 8122133244e1318b41dca3d71a643183d0ada7fd Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 11 Apr 2021 15:16:37 +0200 Subject: [PATCH] _datadir is now defined in client.py --- oyoyo/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oyoyo/client.py b/oyoyo/client.py index 0adfbd4..803731d 100644 --- a/oyoyo/client.py +++ b/oyoyo/client.py @@ -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