Fix deprecated code (#14681)

This commit is contained in:
Paulus Schoutsen 2018-05-29 17:14:58 -04:00 committed by Fabian Affolter
parent 7d2563eb1f
commit e746b92e0e
3 changed files with 8 additions and 8 deletions

View file

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