Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ handle
Function
handle
example_code/item_087.py:59–64 ·
view source on GitHub ↗
(request)
Source
from the content-addressed store, hash-verified
57
assert False, data
58
59
def
handle(request):
60
try
:
61
do_work(request.body)
62
except
BaseException
as
e:
63
print(repr(e))
64
request.response = 400
# Bad request error
65
66
67
print(
"Example 2"
)
Callers
1
item_087.py
File · 0.85
Calls
1
do_work
Function · 0.85
Tested by
no test coverage detected