Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
def
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
throws
Function · 0.70
open
Function · 0.50
Tested by
no test coverage detected