()
| 50 | |
| 51 | |
| 52 | async def test_urlparse_error(): |
| 53 | print("\n--- URLParseError (bad url) ---") |
| 54 | try: |
| 55 | await rnet.get("ht!tp://bad_url") |
| 56 | except rnet_errors as e: |
| 57 | print(f"Caught: {type(e).__name__}: {e}") |
| 58 | except Exception as e: |
| 59 | print(f"Other error: {type(e).__name__}: {e}") |
| 60 | |
| 61 | |
| 62 | async def main(): |