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 20
20
21
21
import json
22
22
import socket
23
+ import logging
23
24
24
25
import certifi
25
26
import urllib3
32
33
""":type: urllib3.PoolManager"""
33
34
CON_POOL_SIZE = 1
34
35
36
+ logging .getLogger ('urllib3' ).setLevel (logging .WARNING )
37
+
35
38
36
39
def _get_con_pool ():
37
40
global _CON_POOL
@@ -99,7 +102,7 @@ def _request_wrapper(*args, **kwargs):
99
102
raise TimedOut ()
100
103
except urllib3 .exceptions .HTTPError as error :
101
104
# 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
103
106
raise NetworkError ('urllib3 HTTPError {0}' .format (error ))
104
107
105
108
if 200 <= resp .status <= 299 :
You can’t perform that action at this time.
0 commit comments