Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit dd4d673

Browse files
Fix None issue
1 parent 2eb031b commit dd4d673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/spanner_v1/testing/mock_spanner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def pop_error(self, context):
6464
def get_execute_streaming_sql_results(
6565
self, sql: str, started_transaction: transaction.Transaction
6666
) -> list[result_set.PartialResultSet]:
67-
if self.execute_streaming_sql_results[sql.lower().strip()]:
67+
if self.execute_streaming_sql_results.get(sql.lower().strip()):
6868
partials = self.execute_streaming_sql_results[sql.lower().strip()]
6969
else:
7070
partials = self.get_result_as_partial_result_sets(sql)

0 commit comments

Comments
 (0)