8000 implement #45 - disable verbose warning logs for verify_ssl=false · homeylab/bookstack-file-exporter@59035e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 59035e0

Browse files
committed
implement #45 - disable verbose warning logs for verify_ssl=false
1 parent fb080db commit 59035e0

File tree

1 file changed

+4
-0
lines changed
  • bookstack_file_exporter/common

1 file changed

+4
-0
lines changed

bookstack_file_exporter/common/util.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import logging
22
from typing import Dict
3+
import urllib3
34
# pylint: disable=import-error
45
import requests
56
# pylint: disable=import-error
@@ -9,6 +10,9 @@
910

1011
log = logging.getLogger(__name__)
1112

13+
# disable TLS warnings if using verify_ssl=false
14+
urllib3.disable_warnings()
15+
1216
class HttpHelper:
1317
def __init__(self, headers: Dict[str, str],
1418
config: HttpConfig):

0 commit comments

Comments
 (0)
0