Skip to content

Commit 1ac5695

Browse files
authored
Update api_requests_example.py
disable SSL warnings
1 parent 967b3ad commit 1ac5695

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

programming_fundamentals/python_part_3/api_requests_example.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515

1616
import requests
1717
from pprint import pprint
18+
import urllib3
19+
20+
# Disable SSL Warnings
21+
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
22+
1823
router = {"ip": "ios-xe-mgmt.cisco.com",
1924
"port": "443",
2025
"user": "developer",

0 commit comments

Comments
 (0)