Explorar el Código

Bugfix for ESI 403 Forbidden errors.

master
Ben Kurtovic hace 7 años
padre
commit
a520f89074
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      calefaction/eve/esi.py

+ 1
- 1
calefaction/eve/esi.py Ver fichero

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


Cargando…
Cancelar
Guardar