コード例 #1
0
    def _handle_errors(self, errors):
        if not errors:
            return

        self.errors += errors

        if self._query.on_error != "continue":
            ViewEngineError.pyexc("Error while executing view.", self.errors)
        else:
            warn("Error encountered when executing view. Inspect 'errors' " "for more information")
コード例 #2
0
    def _handle_errors(self, errors):
        if not errors:
            return

        self.errors += errors

        if self._query.on_error != 'continue':
            ViewEngineError.pyexc("Error while executing view.", self.errors)
        else:
            warn("Error encountered when executing view. Inspect 'errors' "
                 "for more information")