mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -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 = {
|
query_len_data = {
|
||||||
'transaction_status': transaction_status,
|
'transaction_status': transaction_status,
|
||||||
'explain_query_length':
|
'explain_query_length':
|
||||||
get_explain_query_length(
|
get_explain_query_length(conn._Connection__async_cursor._query)
|
||||||
conn._Connection__async_cursor._query)
|
if conn._Connection__async_cursor else 0
|
||||||
}
|
}
|
||||||
return internal_server_error(result, query_len_data)
|
return internal_server_error(result, query_len_data)
|
||||||
elif status == ASYNC_OK:
|
elif status == ASYNC_OK:
|
||||||
|
Loading…
Reference in New Issue
Block a user