Skip to content

Commit 8e8449d

Browse files
1 parent 3ad9ce9 commit 8e8449d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎google/cloud/spanner_v1/transaction.py‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,13 @@ def wrapped_method(*args, **kwargs):
663663
if is_inline_begin:
664664
self._lock.release()
665665

666-
if len(response_pb.result_sets) > 0 and response_pb.result_sets[0].precommit_token:
667-
self._update_for_precommit_token_pb(response_pb.result_sets[0].precommit_token)
666+
if (
667+
len(response_pb.result_sets) > 0
668+
and response_pb.result_sets[0].precommit_token
669+
):
670+
self._update_for_precommit_token_pb(
671+
response_pb.result_sets[0].precommit_token
672+
)
668673

669674
row_counts = [
670675
result_set.stats.row_count_exact for result_set in response_pb.result_sets

0 commit comments

Comments
 (0)