Using the correct member variable while fetching the notices/messages

from the psycopg2 connection.
This commit is contained in:
Neel Patel 2016-03-06 18:56:16 +05:30 committed by Ashesh Vashi
parent 6014448dd7
commit 31ab9ebacc

View File

@ -796,7 +796,7 @@ Polling result for (Query-id: {query_id})""".format(query_id=self.__async_query_
"""
Returns the list of the messages/notices send from the database server.
"""
return self.pg_conn.notices if self.pg_conn else []
return self.conn.notices if self.conn else []
class ServerManager(object):