Skip to content

Commit 196188e

Browse files
mdesmethashhar
authored andcommitted
Ignore already removed deallocated prepared statement headers
1 parent 59473d7 commit 196188e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trino/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def process(self, http_response) -> TrinoStatus:
607607
for name in get_header_values(
608608
http_response.headers, constants.HEADER_DEALLOCATED_PREPARE
609609
):
610-
self._client_session.prepared_statements.pop(name)
610+
self._client_session.prepared_statements.pop(name, None)
611611

612612
self._next_uri = response.get("nextUri")
613613

0 commit comments

Comments
 (0)