Fix deprecated code (#14681)
This commit is contained in:
parent
7d2563eb1f
commit
e746b92e0e
3 changed files with 8 additions and 8 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue