def first_or_404(self, description=None):
rv = self.first()<EOL>if rv is None:<EOL><INDENT>abort(<NUM_LIT>, description=description)<EOL><DEDENT>return rv<EOL>
Like :meth:`first` but aborts with 404 if not found instead of returning ``None``.