(url: str)
| 25 | |
| 26 | |
| 27 | def get_json(url: str) -> dict: |
| 28 | resp = get(url) |
| 29 | body = resp.read() |
| 30 | try: |
| 31 | return json.loads(body) |
| 32 | except Exception as e: |
| 33 | raise RuntimeError(f"{resp.status=} {body=}") from e |
| 34 | |
| 35 | |
| 36 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…