def _get_http_error(kwargs):
    if 'exc_info' in kwargs and hasattr(kwargs['exc_info'][1], 'errors'):
        return kwargs['exc_info'][1]
dataset/ETHPy150Open openpermissions/koi/koi/base.py/_get_http_error/original