MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / test_urlparse_error

Function test_urlparse_error

python/examples/exceptions.py:52–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51
52async 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
62async def main():

Callers 1

mainFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected