fix error message when instantiating contract

This commit is contained in:
Piper Merriam 2017-02-15 12:46:25 -07:00
parent d797a5769e
commit cbfc4c504c

View File

@ -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)