Skip to content

table submit_transaction throws IndexError if there is no transaction #31471

@G-M-twostay

Description

@G-M-twostay
  • Package Name: azure-data-tables:
  • **Package Version: 12.4.3 **:
  • Operating System: win11 enterprise:
  • Python Version: 3.11:

Describe the bug
azure.data.tables.aio.TableClient.submit_transaction throws IndexError if the parameter operations is an empty list or empty iterator.

To Reproduce
Steps to reproduce the behavior:

  1. Setup an aio.TableClient. For example, client=TableClient(...).
  2. use 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.
Bug Traceback

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Release neededTablescustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions