INNER CODE UNIT · Python

resp

mistio/mist-ce · ci/release.py:88

        resp = requests.request(method, url, headers=headers, **kwargs)
        if not resp.ok:
            print(resp.status_code)
            print(resp.text)
            raise Exception(resp.status_code)
        if parse_json_resp:
            try:
                return resp.json()
            except Exception:
                print("Error decoding json response")
                print(resp.text)
                raise
        else:
            return resp


def print_release(release):
    print('-' * 60)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…