MCPcopy Create free account
hub / github.com/ActiveState/code / recipe-252530.py

File recipe-252530.py

recipes/Python/252530_ExceptiHandling/recipe-252530.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1def throws(f, *a, **k):
2 "Return True if f(*a,**k) raises an exception."
3 try:
4 f(*a,**k)

Callers

nothing calls this directly

Calls 2

throwsFunction · 0.70
openFunction · 0.50

Tested by

no test coverage detected