🎨 fix linter error

This commit is contained in:
yanyongyu
2021-07-03 11:50:56 +08:00
parent da16bdbb96
commit 8e915f808b
3 changed files with 10 additions and 9 deletions

View File

@ -195,8 +195,9 @@ class Driver(ReverseDriver):
self, http_request)
if not x_self_id:
raise HTTPException(response and response.status or 401,
response.body)
raise HTTPException(
response and response.status or 401, response and
response.body and response.body.decode("utf-8"))
if x_self_id in self._clients:
logger.warning("There's already a reverse websocket connection,"