Fix deprecated code (#14681)

This commit is contained in:
Paulus Schoutsen authored and Fabian Affolter committed 2018-05-29 23:14:58 +02:00
1 parent 7d2563eb1f
commit e746b92e0e
3 files changed
+8 -8

No files matched your search

+1 -1
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?