python-hyper / h2

Pure-Python HTTP/2 protocol implementation
https://python-hyper.org/
MIT License
968 stars 157 forks source link

Fix bug when v is None #1281

Open puke3615 opened 8 months ago

puke3615 commented 8 months ago

When we use a library called 'wechaty', the variable v may be None. And at this time, it will throw an exception: 'NoneType' object has no attribute 'encode'.