Skip to content

Commit 1374715

Browse files
committed
#481 - disables the certificate validation
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 30178ff commit 1374715

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/attributecode/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,6 +1648,8 @@ def detect_special_char(expression):
16481648

16491649
def valid_api_url(api_url):
16501650
try:
1651+
import ssl
1652+
ssl._create_default_https_context = ssl._create_unverified_context
16511653
request = Request(api_url)
16521654
# This will always goes to exception as no key are provided.
16531655
# The purpose of this code is to validate the provided api_url is correct

0 commit comments

Comments
 (0)