Skip to content

Commit 6b07d63

Browse files
committed
fix test errors
1 parent ec7274f commit 6b07d63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ydb/query/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@ def create_execute_query_request(
192192
return req.to_proto()
193193

194194

195-
def wrap_execute_query_response(rpc_state, response_pb, tx, commit_tx=False):
195+
def wrap_execute_query_response(rpc_state, response_pb, tx=None, commit_tx=False):
196196
issues._process_response(response_pb)
197-
if response_pb.tx_meta and not tx.tx_id:
197+
if tx and response_pb.tx_meta and not tx.tx_id:
198198
tx._handle_tx_meta(response_pb.tx_meta)
199-
if commit_tx:
199+
if tx and commit_tx:
200200
tx._move_to_commited()
201201
return convert.ResultSet.from_message(response_pb.result_set)
202202

0 commit comments

Comments
 (0)