Clean up patch.

This commit is contained in:
rfw 2017-07-13 01:08:33 -07:00 committed by GitHub
parent 77779e2d8a
commit 4eb5075d42
1 changed files with 1 additions and 3 deletions

View File

@ -103,9 +103,7 @@ class BasicClient:
try:
self._connect(hostname=hostname, port=port, reconnect=reconnect, **kwargs)
except OSError:
self.on_disconnect(
expected=False,
)
self.on_disconnect(expected=False)
# Set logger name.
if self.server_tag: