Fix deprecated code (#14681)
This commit is contained in:
1 parent
7d2563eb1f
commit
e746b92e0e
3 files changed
+8
-8
No files matched your search
@@ -185,7 +185,7 @@ class CloudIoT:
|
||||
yield from client.send_json(response)
|
||||
|
||||
except client_exceptions.WSServerHandshakeError as err:
|
||||
if err.code == 401:
|
||||
if err.status == 401:
|
||||
disconnect_warn = 'Invalid auth.'
|
||||
self.close_requested = True
|
||||
# Should we notify user?
|
||||
|
||||
Reference in new issue
Block a user