Refactor code to remove alerts as per lgtm and #1176.
This commit is contained in:
parent
dcde526f6d
commit
74eebfed6d
54 changed files with 226 additions and 264 deletions
|
|
@ -559,6 +559,7 @@ class WebSocketProtocol(ProtocolWrapper):
|
|||
if "\r\n" in self.buf:
|
||||
request, chaff, self.buf = self.buf.partition("\r\n")
|
||||
try:
|
||||
# verb and version are never used, maybe in the future.
|
||||
verb, self.location, version = request.split(" ")
|
||||
except ValueError:
|
||||
self.loseConnection()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue