def METHOD_NAME():
    @sqlalchemy_psycopg2_connector.wrap_exceptions
    def func():
        raise sqlalchemy.exc.OperationalError(
            statement="SELECT 1", params={}, orig=psycopg2.DatabaseError()
        )
    with pytest.raises(exceptions.ConnectorException):
        func()