diff options
Diffstat (limited to 'botcore')
-rw-r--r-- | botcore/site_api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/botcore/site_api.py b/botcore/site_api.py index d3a58b9c..44309f9d 100644 --- a/botcore/site_api.py +++ b/botcore/site_api.py @@ -76,7 +76,8 @@ class APIClient: """Close the aiohttp session.""" await self.session.close() - async def maybe_raise_for_status(self, response: aiohttp.ClientResponse, should_raise: bool) -> None: + @staticmethod + async def maybe_raise_for_status(response: aiohttp.ClientResponse, should_raise: bool) -> None: """ Raise :exc:`ResponseCodeError` for non-OK response if an exception should be raised. |