File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2020
2121import json
2222import socket
23+ import logging
2324
2425import certifi
2526import urllib3
3233""":type: urllib3.PoolManager"""
3334CON_POOL_SIZE = 1
3435
36+ logging .getLogger ('urllib3' ).setLevel (logging .WARNING )
37+
3538
3639def _get_con_pool ():
3740 global _CON_POOL
@@ -99,7 +102,7 @@ def _request_wrapper(*args, **kwargs):
99102 raise TimedOut ()
100103 except urllib3 .exceptions .HTTPError as error :
101104 # HTTPError must come last as its the base urllib3 exception class
102- # TODO: do something smart here; for now just raise NetowrkError
105+ # TODO: do something smart here; for now just raise NetworkError
103106 raise NetworkError ('urllib3 HTTPError {0}' .format (error ))
104107
105108 if 200 <= resp .status <= 299 :
You can’t perform that action at this time.
0 commit comments