-
Notifications
You must be signed in to change notification settings - Fork 3
Fix: Eliminate uses of requests library (#7633) #7745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
69f30a1
67910c2
e39f56d
98bfba1
4aca29b
8eeca22
6fca078
48c512a
96fcea4
a99287d
f95a5c5
ff5c85b
2d2b913
4a8fc76
7996831
f68ce7c
ac45386
fd1127a
d5d7a40
0ed541e
3e0cdf3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,6 +73,7 @@ modules = | |
| azul.field_type, | ||
| azul.source, | ||
| scripts.kibana_proxy, | ||
| urllib3_mock, | ||
|
|
||
|
|
||
| packages = | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -174,6 +174,12 @@ def http_client(log: logging.Logger | None = None) -> HttpClient: | |||||
| return StatusRetryHttpClient(client) | ||||||
|
|
||||||
|
|
||||||
| def raise_on_status(response: urllib3.BaseHTTPResponse) -> None: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason to deviate from the name used by the
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, |
||||||
| if not 200 <= response.status <= 399: | ||||||
| msg = f'{response.reason} for url: {response.url}' | ||||||
| raise urllib3.exceptions.HTTPError(msg) | ||||||
|
|
||||||
|
|
||||||
| class LimitedTimeoutException(Exception): | ||||||
|
|
||||||
| def __init__(self, url: furl, timeout: float): | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.