table submit_transaction throws IndexError if there is no transaction #31471
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Release needed
Tables
Describe the bug
azure.data.tables.aio.TableClient.submit_transaction
throwsIndexError
if the parameteroperations
is an empty list or empty iterator.To Reproduce
Steps to reproduce the behavior:
aio.TableClient
. For example,client=TableClient(...)
.client.submit_transaction([])
.Expected behavior
Since there is no transaction, I expected this to be a no-op and do nothing.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: