Skip to content

Commit

Permalink
Merge pull request #176 from mschweyen/patch-1
Browse files Browse the repository at this point in the history
additional filter to supress urllib3 warnings
  • Loading branch information
nitzmahone committed Dec 8, 2017
2 parents 656f748 + 380dcfd commit 8303cd9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions winrm/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,12 @@ def __init__(
try:
from requests.packages.urllib3.exceptions import InsecureRequestWarning
warnings.simplefilter('ignore', category=InsecureRequestWarning)
except:
pass # oh well, we tried...
except: pass # oh well, we tried...

try:
from urllib3.exceptions import InsecureRequestWarning
warnings.simplefilter('ignore', category=InsecureRequestWarning)
except: pass # oh well, we tried...

# validate credential requirements for various auth types
if self.auth_method != 'kerberos':
Expand Down

0 comments on commit 8303cd9

Please sign in to comment.