From cbfc4c504c852cb46580cfce819136a223d562c1 Mon Sep 17 00:00:00 2001 From: Piper Merriam Date: Wed, 15 Feb 2017 12:46:25 -0700 Subject: [PATCH] fix error message when instantiating contract --- web3/contract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3/contract.py b/web3/contract.py index c527ab5..12b3fce 100644 --- a/web3/contract.py +++ b/web3/contract.py @@ -200,7 +200,7 @@ class Contract(object): raise AttributeError( "Property {0} not found on contract class. " "`Contract.factory` only accepts keyword arguments which are " - "present on the contract class" + "present on the contract class".format(key) ) return type(contract_name, (cls,), kwargs)