소스 검색

Bugfix for ESI 403 Forbidden errors.

master
Ben Kurtovic 7 년 전
부모
커밋
a520f89074
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      calefaction/eve/esi.py

+ 1
- 1
calefaction/eve/esi.py 파일 보기

@@ -197,7 +197,7 @@ class EVESwaggerInterface:
result = resp.json() if resp.content else None
except (requests.RequestException, ValueError) as exc:
self._logger.exception("ESI request failed")
if hasattr(exc, "response") and (exc.response and
if hasattr(exc, "response") and (exc.response is not None and
exc.response.status_code == 403):
raise EVEAPIForbiddenError()
raise EVEAPIError()


불러오는 중...
취소
저장