From 2ff16e5e8e7e6965f6de5980f41a79b83c329815 Mon Sep 17 00:00:00 2001 From: xiaozhu1337 <50901869+xiaozhu1337@users.noreply.github.com> Date: Wed, 27 Nov 2019 21:09:33 +0800 Subject: [PATCH] Update main.py botocore.vendored.requests.packages.urllib3 don't have disable_warnings,so someone will have trouble. https://github.com/andresriancho/enumerate-iam/issues/7 --- enumerate_iam/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enumerate_iam/main.py b/enumerate_iam/main.py index fee5601..5a8491c 100644 --- a/enumerate_iam/main.py +++ b/enumerate_iam/main.py @@ -203,8 +203,8 @@ def configure_logging(): import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) - import botocore.vendored.requests.packages.urllib3 as urllib3 - urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) + # import botocore.vendored.requests.packages.urllib3 as urllib3 + urllib3.disable_warnings(botocore.vendored.requests.packages.urllib3.exceptions.InsecureRequestWarning) def enumerate_iam(access_key, secret_key, session_token, region):