Skip to content

Commit 12cfcf1

Browse files
committed
Disabled urllib3 warnings using the urllib3 module in the requests module.
1 parent ecde63f commit 12cfcf1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nyawc/helpers/DebugHelper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
# SOFTWARE.
2424

25-
import urllib3
2625
import requests
2726

2827
class DebugHelper:
@@ -38,7 +37,9 @@ def setup(options):
3837
"""
3938

4039
if not options.misc.debug:
41-
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
40+
requests.packages.urllib3.disable_warnings(
41+
requests.packages.urllib3.exceptions.InsecureRequestWarning
42+
)
4243

4344

4445
@staticmethod

0 commit comments

Comments
 (0)