From 5b879e13c78200d1b84daaf44394e2ac76aa97ca Mon Sep 17 00:00:00 2001 From: Austin Taylor Date: Tue, 14 Aug 2018 06:23:18 -0400 Subject: [PATCH] Silence requests warnings --- vulnwhisp/frameworks/nessus.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vulnwhisp/frameworks/nessus.py b/vulnwhisp/frameworks/nessus.py index 4db0134..1e9a14f 100755 --- a/vulnwhisp/frameworks/nessus.py +++ b/vulnwhisp/frameworks/nessus.py @@ -1,4 +1,7 @@ import requests +from requests.packages.urllib3.exceptions import InsecureRequestWarning +requests.packages.urllib3.disable_warnings(InsecureRequestWarning) + import pytz from datetime import datetime import json @@ -214,4 +217,4 @@ class NessusAPI(object): 'Central Standard Time': 'US/Central', 'Pacific Standard Time': 'US/Pacific', 'None': 'US/Central'} - return time_map.get(tz, None) + return time_map.get(tz, None)