瀏覽代碼

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()


Loading…
取消
儲存