We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slot = Slot.get_one(db, {'_id': ObjectId(slot_id)}) if not slot: abort(404) return render_template('foo.html', slot=slot)
slot = Slot.get_one(db, {'_id': ObjectId(slot_id)}) # if not found, `abort(404)` is called return render_template('foo.html', slot=slot)
This implies one of these options:
NotFound
lambda: abort(404)
None
The second option is of course much better.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given
Desired
This implies one of these options:
NotFound
/lambda: abort(404)
/None
).The second option is of course much better.
The text was updated successfully, but these errors were encountered: