We expected an exception for a missing record, so the except never runs and the next line fails:
python
try:
task = org.crud.get("task", task_uuid)
except Exception:
task = None
print(task["title"])