Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ fail
Function
fail
example_code/item_007.py:57–58 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
55
56
print(
"Example 2"
)
57
def
fail():
58
raise
Exception(
"Oops"
)
59
60
x = fail()
if
False
else
20
61
print(x)
Callers
1
item_007.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected