Skip to content

Commit

Permalink
fixed check for None emutations
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Oct 17, 2023
1 parent 5bbae6c commit fcfcc1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/cloud/bigtable/data/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,9 +951,9 @@ async def mutate_row(
)
_validate_timeouts(operation_timeout, attempt_timeout)

mutations_list = mutations if isinstance(mutations, list) else [mutations]
if not mutations_list:
if not mutations:
raise ValueError("No mutations provided")
mutations_list = mutations if isinstance(mutations, list) else [mutations]

if all(mutation.is_idempotent() for mutation in mutations_list):
# mutations are all idempotent and safe to retry
Expand Down

0 comments on commit fcfcc1d

Please sign in to comment.