MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / _after_request

Method _after_request

service/esiAccess.py:291–302  ·  view source on GitHub ↗
(self, resp)

Source from the content-addressed store, hash-verified

289 self._session.headers.update(self.get_oauth_header(ssoChar.accessToken))
290
291 def _after_request(self, resp):
292 if "warning" in resp.headers:
293 pyfalog.warn("{} - {}".format(resp.headers["warning"], resp.url))
294
295 if resp.status_code >= 400:
296 raise APIException(
297 resp.url,
298 resp.status_code,
299 resp.json()
300 )
301
302 return resp
303
304 def get(self, ssoChar, endpoint, **kwargs):
305 self._before_request(ssoChar)

Callers 3

getMethod · 0.95
postMethod · 0.95
deleteMethod · 0.95

Calls 1

APIExceptionClass · 0.85

Tested by

no test coverage detected