human
Solve the following python programming problem given the following code:
def get_postgres_connection(host, port, database = None) : 
    '
    Returns a ``Deferred`` which fires with a pg8000 connection when one
    has been created.

    See http://pythonhosted.org//pg8000/dbapi.html#pg8000.connect for
    parameter information.

    :param host: Host to connect to.
    :param port: Port to connect to:
    :param database: Database to connect to.

    :return: ``Deferred`` that fires with a pg8000 connection.
    ' 
    def connect_to_postgres() : 
        try : 
            return connect (host = host, user = 'postgres', port = port, database = database) 
except (InterfaceError, ProgrammingError) as e : 
            Message.new (message_type = 'acceptance:integration:postgres_connect', exception = unicode (e.__class__), reason = unicode (e)).write () 
            return False 
d = loop_until (reactor, d) 
    return d 

    
    

    Fix the buggy line: d = loop_until (reactor, d)
assistant
#Here is Python code to fix the buggy line: d = loop_until (reactor, d)
.

d = loop_until (reactor, def connect_to_postgres()