Skip to content

Commit 1417eb8

Browse files
committed
Hot fix for string interpolation in message.
Closes 2069.
1 parent e2cd3a4 commit 1417eb8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

newsfragments/2069.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hot fix for a string interpolation issue in message when BadFunctionCallOutput is raised for call_contract_function()

web3/contract.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,8 +1524,8 @@ def call_contract_function(
15241524
)
15251525
else:
15261526
msg = (
1527-
"Could not decode contract function call {function_identifier} "
1528-
"return data {return_data!r} for output_types {output_types}"
1527+
f"Could not decode contract function call {function_identifier} "
1528+
f"return data {return_data!r} for output_types {output_types}"
15291529
)
15301530
raise BadFunctionCallOutput(msg) from e
15311531

0 commit comments

Comments
 (0)