mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2026-02-04 10:14:15 +02:00
Just minor formatting
This commit is contained in:
@@ -167,8 +167,11 @@ class DiscordOAuth2HttpClient(abc.ABC):
|
|||||||
if self.proxy_auth is not None:
|
if self.proxy_auth is not None:
|
||||||
kwargs["proxy_auth"] = self.proxy_auth
|
kwargs["proxy_auth"] = self.proxy_auth
|
||||||
|
|
||||||
response = self._make_session(
|
response = self._make_session().request(
|
||||||
).request(method, route, data, **kwargs) if oauth else requests.request(method, route, data=data, **kwargs)
|
method, route, data, **kwargs
|
||||||
|
) if oauth else requests.request(
|
||||||
|
method, route, data=data, **kwargs
|
||||||
|
)
|
||||||
|
|
||||||
if response.status_code == 401:
|
if response.status_code == 401:
|
||||||
raise exceptions.Unauthorized()
|
raise exceptions.Unauthorized()
|
||||||
|
|||||||
Reference in New Issue
Block a user