From 692509189f17fb497dc50ddafe83f348725fdfb2 Mon Sep 17 00:00:00 2001 From: "[object Object]" Date: Fri, 15 Nov 2024 08:41:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B7=D0=B0=D1=89=D0=B8?= =?UTF-8?q?=D1=89=D0=B5=D0=BD=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BF=D1=83=D1=82?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hh_applicant_tool/telemetry_client.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hh_applicant_tool/telemetry_client.py b/hh_applicant_tool/telemetry_client.py index f7b6baa..b864dad 100644 --- a/hh_applicant_tool/telemetry_client.py +++ b/hh_applicant_tool/telemetry_client.py @@ -4,8 +4,10 @@ import requests from typing import Optional, Dict, Any import logging -import base64 from functools import partialmethod +import warnings + +warnings.filterwarnings('ignore', message='Unverified HTTPS request') logger = logging.getLogger(__package__) @@ -19,9 +21,7 @@ class TelemetryError(Exception): class TelemetryClient: """Клиент для отправки телеметрии на сервер.""" - server_address = base64.b64decode( - "aHR0cDovLzMxLjEzMS4yNTEuMTA3OjU0MTU2" - ).decode() + server_address: str = "https://hh-applicant-tool.mooo.com:54157/" def __init__( self, @@ -55,6 +55,7 @@ def request( proxies=self.proxies, params=data if not has_body else None, json=data if has_body else None, + verify=False, # Игнорирование истекшего сертификата ) # response.raise_for_status() result = response.json()