sq close the goddamn session

This commit is contained in:
hackrush 2018-08-17 00:53:01 +05:30 committed by Jack Robison
parent daae0b2836
commit aa83bbd637
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -31,6 +31,7 @@ async def execute_command(method, params, conf_path=None):
api = await LBRYAPIClient.get_client(conf_path)
await api.status()
except (ClientConnectorError, ConnectionError):
await api.session.close()
print("Could not connect to daemon. Are you sure it's running?")
return 1