capybara/session.py
def raise_server_error(self):
        """ Raise errors encountered by the server. """
        if self.server and self.server.error:
            try:
                if capybara.raise_server_errors:
                    raise self.server.error
            finally:
                self.server.reset_error()
def raise_server_error(self):
        """ Raise errors encountered by the server. """
        if self.server and self.server.error:
            try:
                if capybara.raise_server_errors:
                    raise self.server.error
            finally:
                self.server.reset_error()
Raise errors encountered by the server.