mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Py3: Exception doesn't have to be bytes
This commit is contained in:
parent
f48073af56
commit
b03a98f9fc
@ -191,7 +191,7 @@ class Response(_HTTPMessage):
|
||||
if self.ws:
|
||||
if not settings.websocket_key:
|
||||
raise exceptions.RenderError(
|
||||
b"No websocket key - have we seen a client handshake?"
|
||||
"No websocket key - have we seen a client handshake?"
|
||||
)
|
||||
if not self.status_code:
|
||||
tokens.insert(
|
||||
|
Loading…
Reference in New Issue
Block a user