MCPcopy
hub / github.com/JustAnotherArchivist/snscrape / _requests_exception_repr

Function _requests_exception_repr

snscrape/_cli.py:84–89  ·  view source on GitHub ↗
(name, exc)

Source from the content-addressed store, hash-verified

82
83
84def _requests_exception_repr(name, exc):
85 ret = []
86 ret.append(f'{name} = {exc!r}')
87 ret.append('\n ' + _repr(f'{name}.request', exc.request).replace('\n', '\n '))
88 ret.append('\n ' + _repr(f'{name}.response', exc.response).replace('\n', '\n '))
89 return ''.join(ret)
90
91
92def _repr(name, value):

Callers 1

_reprFunction · 0.85

Calls 1

_reprFunction · 0.85

Tested by

no test coverage detected