Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit 7f9cb24

Browse files
committed
feat: don't verify certificates
1 parent f589a96 commit 7f9cb24

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def __post_request(url, json_data):
88
api_url = f"{api_host}/{url}"
99
headers = {'X-API-Key': api_key, 'Content-type': 'application/json'}
1010

11-
req = requests.post(api_url, headers=headers, json=json_data)
11+
req = requests.post(api_url, headers=headers, json=json_data, verify=False)
1212
req.close()
1313

1414
try:
@@ -91,7 +91,7 @@ def __delete_user(email):
9191
def check_user(email):
9292
url = f"{api_host}/api/v1/get/mailbox/{email}"
9393
headers = {'X-API-Key': api_key, 'Content-type': 'application/json'}
94-
req = requests.get(url, headers=headers)
94+
req = requests.get(url, headers=headers, verify=False)
9595
req.close()
9696

9797
try:

syncer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
from string import Template
1212
from pathlib import Path
1313

14+
import urllib3
15+
urllib3.disable_warnings()
16+
1417
import logging
1518
logging.basicConfig(format='%(asctime)s %(message)s',
1619
datefmt='%d.%m.%y %H:%M:%S', level=logging.INFO)

0 commit comments

Comments
 (0)