mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-21 16:27:39 -06:00
Add a precautionary check for the query tool connection cursor to fix the error 'NoneType' object has no attribute '_query'. #7660
This commit is contained in:
parent
a75273a714
commit
bfcdcdc4f1
@ -988,8 +988,8 @@ def poll(trans_id):
|
||||
query_len_data = {
|
||||
'transaction_status': transaction_status,
|
||||
'explain_query_length':
|
||||
get_explain_query_length(
|
||||
conn._Connection__async_cursor._query)
|
||||
get_explain_query_length(conn._Connection__async_cursor._query)
|
||||
if conn._Connection__async_cursor else 0
|
||||
}
|
||||
return internal_server_error(result, query_len_data)
|
||||
elif status == ASYNC_OK:
|
||||
|
Loading…
Reference in New Issue
Block a user