Skip to content

_EventBundle reports wrong kwarg name when required kwarg is missing. #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jeamland opened this issue Aug 26, 2016 · 1 comment
Closed

Comments

@jeamland
Copy link
Contributor

jeamland commented Aug 26, 2016

Python 3.5.2 (default, Aug 16 2016, 05:35:40)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import h11
>>> h11.Response(status_code=200)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/riceb2/.pyenv/versions/nodinator/lib/python3.5/site-packages/h11/_events.py", line 41, in __init__
    .format(kwarg, self.__class__.__name__))
TypeError: missing required kwarg status_code for Response
>>> h11.Response(headers={})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/riceb2/.pyenv/versions/nodinator/lib/python3.5/site-packages/h11/_events.py", line 41, in __init__
    .format(kwarg, self.__class__.__name__))
TypeError: missing required kwarg headers for Response
>>> h11.Response(status_code=200, headers={})
Response(status_code=200, headers=[], http_version=b'1.1')
>>>
@njsmith
Copy link
Member

njsmith commented Oct 25, 2016

Fixed by #15

@njsmith njsmith closed this as completed Oct 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants