MCPcopy Index your code
hub / github.com/python/cpython / _warn_unhandled_exception

Function _warn_unhandled_exception

Lib/http/cookiejar.py:66–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64"""
65
66def _warn_unhandled_exception():
67 # There are a few catch-all except: statements in this module, for
68 # catching input that's bad in unexpected ways. Warn if any
69 # exceptions are caught there.
70 import io, warnings, traceback
71 f = io.StringIO()
72 traceback.print_exc(None, f)
73 msg = f.getvalue()
74 warnings.warn("http.cookiejar bug!\n%s" % msg, stacklevel=2)
75
76
77# Date/time conversion

Callers 3

make_cookiesMethod · 0.85
_really_loadMethod · 0.85
_really_loadMethod · 0.85

Calls 3

getvalueMethod · 0.95
print_excMethod · 0.80
warnMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…