MCPcopy
hub / github.com/httpie/cli / unwrap_context

Function unwrap_context

httpie/utils.py:258–263  ·  view source on GitHub ↗
(exc: Exception)

Source from the content-addressed store, hash-verified

256
257
258def unwrap_context(exc: Exception) -> Optional[Exception]:
259 context = exc.__context__
260 if isinstance(context, Exception):
261 return unwrap_context(context)
262 else:
263 return exc
264
265
266def url_as_host(url: str) -> str:

Callers 1

raw_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected