Skip to content

Commit 65e4580

Browse files
authored
[SB] - Fix F-String in Async (Azure#37778)
* fix f-string in error msg * remove location info * changelog * add location back in to tests
1 parent a6aa7a3 commit 65e4580

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sdk/servicebus/azure-servicebus/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
### Bugs Fixed
1010

11+
- Fixed a broken f-string present in a `ValueError` when using the async client ([37695](https://github.com/Azure/azure-sdk-for-python/issues/37695))
12+
1113
### Other Changes
1214

1315
## 7.12.3 (2024-09-19)

sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ async def create_message_batch(
480480
if max_size_in_bytes and max_size_in_bytes > self._max_message_size_on_link:
481481
raise ValueError(
482482
f"Max message size: {max_size_in_bytes} is too large, "
483-
"acceptable max batch size is: {self._max_message_size_on_link} bytes."
483+
f"acceptable max batch size is: {self._max_message_size_on_link} bytes."
484484
)
485485

486486
return ServiceBusMessageBatch(

0 commit comments

Comments
 (0)