[pgAdmin4][psycopg2] - poll function local variable reference error

From: Neel Patel <neel(dot)patel(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin4][psycopg2] - poll function local variable reference error
Date: 2016-03-15 11:44:53
Message-ID: CACCA4P0KHDD3gCKmMbBkvRKxgp9Rx91KTYxjfVX=XHEsJfthCg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

During the debugger implementation, we came to know that "poll()" function
is getting failed when the status is not equal to "ASYNC_OK". We are
getting the below error at python side.

"UnboundLocalError: local variable 'colinfo' referenced before assignment"

Attached is the patch that resolves the above error.

Do review it and let us know for comments.

Thanks,
Neel Patel

Attachment Content-Type Size
poll_local_var_error.patch application/octet-stream 649 bytes

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2016-03-15 11:46:26 pgAdmin 4 commit: Fix PIP packaging code so it works nicely on Linux an
Previous Message Dave Page 2016-03-15 09:12:37 Re: Adding to Documentation