Skip to content

Commit 3ea4ede

Browse files
committed
Use correct variable when telling the user which kwarg they forgot.
Fixes issue python-hyper#14.
1 parent 0f0c468 commit 3ea4ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

h11/_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, **kwargs):
3535
if field not in kwargs:
3636
raise TypeError(
3737
"missing required kwarg {} for {}"
38-
.format(kwarg, self.__class__.__name__))
38+
.format(field, self.__class__.__name__))
3939
self.__dict__.update(self._defaults)
4040
self.__dict__.update(kwargs)
4141

0 commit comments

Comments
 (0)