Py3: Exception doesn't have to be bytes

This commit is contained in:
Shadab Zafar 2016-06-06 00:26:00 +05:30 committed by Maximilian Hils
parent f48073af56
commit b03a98f9fc

View File

@ -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(