Skip to content

Commit a48c6b5

Browse files
Nikokrockenzbang
authored andcommitted
requests.packages.urllib3 is in fact urllib3
Using urllib3 directly ensure we have access to the type information
1 parent d484d11 commit a48c6b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/e3/net/http.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
import requests
1212
import requests.adapters
1313
import requests.exceptions
14-
import requests.packages.urllib3.exceptions
15-
from requests.packages.urllib3.util import Retry
14+
import urllib3.exceptions
15+
from urllib3.util import Retry
1616

1717
from typing import TYPE_CHECKING
1818

@@ -221,7 +221,7 @@ def request(
221221
except (
222222
socket.timeout,
223223
requests.exceptions.RequestException,
224-
requests.packages.urllib3.exceptions.HTTPError,
224+
urllib3.exceptions.HTTPError,
225225
) as e:
226226
# got an error with that base url so put it last in our list
227227
error_msgs.append(f"{message_prefix}{e}")

0 commit comments

Comments
 (0)