This commit is contained in:
Victor Shyba 2019-06-04 11:09:40 -03:00 committed by Lex Berezhny
parent 8e43e40810
commit 3ea92c0d6e

View file

@ -81,7 +81,7 @@ class BaseNetwork:
await client.create_connection(timeout) await client.create_connection(timeout)
await client.send_request('server.banner') await client.send_request('server.banner')
return client return client
except (asyncio.TimeoutError, asyncio.CancelledError) as error: except (asyncio.TimeoutError, asyncio.CancelledError):
if not client.is_closing(): if not client.is_closing():
client.abort() client.abort()
raise raise