Skip to content

Commit 5ef554e

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)