Skip to content

Commit 39d9eba

Browse files
authored
Fix async sample (Azure#28989)
1 parent 98f4c82 commit 39d9eba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/tables/azure-data-tables/samples/async_samples/sample_conditional_update_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async def conditional_update_basic(self):
8080
# Update an existing entity by replacing all of its properties with those specified.
8181
# This operation will only succeed if the entity has not been modified since we last retrieved the Etag.
8282
try:
83-
table_client.update_entity(entity=self.entity2, mode=UpdateMode.REPLACE, match_condition=MatchConditions.IfNotModified, etag=metadata2["etag"])
83+
await table_client.update_entity(entity=self.entity2, mode=UpdateMode.REPLACE, match_condition=MatchConditions.IfNotModified, etag=metadata2["etag"])
8484
except ResourceModifiedError:
8585
print("This entity has been altered and may no longer be in the expected state.")
8686
entity3 = await table_client.get_entity(partition_key=self.entity1["PartitionKey"], row_key=self.entity1["RowKey"])

0 commit comments

Comments
 (0)